我在nav标签中有一个元素列表 . 我想点击第一个列表元素 . 我的HTML如下:
我的测试案例有时失败了;我的测试用例通过但有时它失败了 . 我使用 XVFB 在 headless 模式下运行我的测试用例 .
应该在主题 *** FAILED *** 中获取数据
[info] org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"css selector","selector":"#left-panel nav #sideNavigation li:nth-child(9) #rAnalytics"}
[info] Command duration or timeout: 10.06 seconds
[info] For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
[info] Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
[info] System info: host: 'knoldus-Vostro-2520', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.v