英文:
Tests success on Eclipse and fail on Jenkins
问题
当我在Eclipse中运行我的测试时,它们毫无问题地运行,但是当我尝试在Jenkins上运行它们时,它们中的大多数会出现超时错误或无法找到CSS选择器。是否有人知道为什么我的Selenium测试在Eclipse上运行正常,但在Jenkins上却出现问题?
一个示例问题:
org.openqa.selenium.TimeoutException: 预期条件失败:等待通过By.cssSelector定位的元素可见:#q_386115(尝试了40秒,间隔为500毫秒)
英文:
When I run my tests in eclipse they work with no problems, however, when I try to run them on jenkins most of them get timeout errors or fail to find css selectors. Does anyone know a solution to why my selenium tests work on eclipse but generate issues in jenkins?
example of 1 issue
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.cssSelector: #q_386115 (tried for 40 second(s) with 500 milliseconds interval)
专注分享java语言的经验与见解,让所有开发者获益!
评论