Удаленка для jenkins+selenide+selenoid+allure+docker спецов на 2-3 часа в день. 100% remote! Присоединиться к проекту

Nightwatchjs + Firefox + Geckodriver (проблема с Файрфоксом)

nightwatch
webdriver
Теги: #<Tag:0x00007fedb7fe1fd0> #<Tag:0x00007fedb7fe1d78>

(Алексей Берлин) #1

Всем привет, столкнулся с проблемой для nightwatch - пробую запускать тест на Файрфокс и после открытия требуемого url браузер не выполняет UI екшны: не кликает, и т.д. также по всей видимости не может ассертить по причине того, что элементы не находятся.
Имеются последние версии geckodriver, selenium-server-standalone, последняя версия браузера да и найтвотч тоже вроде как последний. проверял на Mас и Windows.

Уверен, что на предыдущих версиях файрфокса у меня все заработает, но это не вариант - откатываться

Логи

14:15:04.116 INFO - Selenium build info: version: '3.5.3', revision: 'a88d25fe6b'
14:15:04.116 INFO - Launching a standalone Selenium Server
2017-09-12 14:15:04.138:INFO::main: Logging initialized @230ms to org.seleniumhq.jetty9.util.log.StdErrLog
14:15:04.195 INFO - Driver class not found: com.opera.core.systems.OperaDriver
14:15:04.227 INFO - Driver provider class org.openqa.selenium.safari.SafariDriver registration is skipped:
 registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform WIN10
14:15:04.264 INFO - Using the passthrough mode handler
2017-09-12 14:15:04.294:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-09-12 14:15:04.317:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@210366b4{/,null,STARTING} has uncovered http methods for path: /
2017-09-12 14:15:04.320:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@210366b4{/,null,AVAILABLE}
2017-09-12 14:15:04.399:INFO:osjs.AbstractConnector:main: Started ServerConnector@56aac163{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-09-12 14:15:04.400:INFO:osjs.Server:main: Started @492ms
14:15:04.400 INFO - Selenium Server is up and running
2017-09-12 14:15:04.566:INFO:osjshC.ROOT:qtp758529971-12: org.openqa.selenium.remote.server.WebDriverServlet-59fa1d9b: Initialising WebDriverServlet
14:15:04.601 INFO - Binding default provider to: org.openqa.selenium.chrome.ChromeDriverService
14:15:04.602 INFO - Found handler: org.openqa.selenium.remote.server.BeginSession@719111bf
14:15:04.605 INFO - /session: Executing POST on /session (handler: BeginSession)
14:15:04.650 INFO - Capabilities are: Capabilities {acceptSslCerts=true, name=Demo, browserName=firefox, javascriptEnabled=true, platformName=ANY, platform=ANY, }
14:15:04.650 INFO - Capabilities {acceptSslCerts=true, name=Demo, browserName=firefox, javascriptEnabled=true, platformName=ANY, platform=ANY, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.firefox.GeckoDriverService)
14:15:04.651 INFO - Capabilities {acceptSslCerts=true, name=Demo, browserName=firefox, javascriptEnabled=true, platformName=ANY, platform=ANY, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
1505214904705	geckodriver	INFO	geckodriver 0.18.0
1505214904710	geckodriver	INFO	Listening on 127.0.0.1:21200
1505214905598	geckodriver::marionette	INFO	Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe with args ["-marionette"]
1505214905837	addons.xpi	WARN	Error parsing extensions state: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [amIAddonManagerStartup.readStartupData]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: loadExtensionState :: line 1596"  data: no] Stack trace: loadExtensionState()@resource://gre/modules/addons/XPIProvider.jsm:1596 < getInstallState()@resource://gre/modules/addons/XPIProvider.jsm:1631 < checkForChanges()@resource://gre/modules/addons/XPIProvider.jsm:3152 < startup()@resource://gre/modules/addons/XPIProvider.jsm:2246 < callProvider()@resource://gre/modules/AddonManager.jsm:271 < _startProvider()@resource://gre/modules/AddonManager.jsm:741 < startup()@resource://gre/modules/AddonManager.jsm:908 < startup()@resource://gre/modules/AddonManager.jsm:3122 < observe()@jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/omni.ja!/components/addonManager.js:65
1505214906182	Marionette	INFO	Enabled via --marionette
1505214907496	Marionette	INFO	Listening on port 49874
1505214907517	Marionette	INFO	Listening on port 49874
1505214907640	Marionette	DEBUG	loaded listener.js
14:15:07.705 INFO - Found handler: org.openqa.selenium.remote.server.ServicedSession@283d47a9
14:15:07.705 INFO - Handler thread for session 051670a6-0f49-431c-a7d5-668d9fc5e743 (firefox): Executing POST on /session/051670a6-0f49-431c-a7d5-668d9fc5e743/url (handler: ServicedSession)
1505214907711	Marionette	DEBUG	Received DOM event "beforeunload" for "about:blank"
1505214909041	Marionette	DEBUG	Received DOM event "pagehide" for "about:blank"
1505214909041	Marionette	DEBUG	Received DOM event "unload" for "about:blank"
1505214909433	Marionette	DEBUG	Received DOM event "DOMContentLoaded" for "https://www.google.com/?gws_rd=ssl"
1505214911082	Marionette	DEBUG	Received observer notification "outer-window-destroyed" for "2147483656"
1505214911085	Marionette	DEBUG	Received DOM event "DOMContentLoaded" for "https://www.google.com/?gws_rd=ssl"
1505214911088	Marionette	DEBUG	Received DOM event "pageshow" for "https://www.google.com/?gws_rd=ssl"
1505214911911	Marionette	DEBUG	Received DOM event "pageshow" for "https://www.google.com/?gws_rd=ssl"
14:15:11.924 INFO - Found handler: org.openqa.selenium.remote.server.ServicedSession@283d47a9
14:15:11.924 INFO - Handler thread for session 051670a6-0f49-431c-a7d5-668d9fc5e743 (firefox): Executing POST on /session/051670a6-0f49-431c-a7d5-668d9fc5e743/element (handler: ServicedSession)
14:15:11.940 INFO - Found handler: org.openqa.selenium.remote.server.ServicedSession@283d47a9
14:15:11.940 INFO - Handler thread for session 051670a6-0f49-431c-a7d5-668d9fc5e743 (firefox): Executing POST on /session/051670a6-0f49-431c-a7d5-668d9fc5e743/element/undefined/value (handler: ServicedSession)
14:15:12.982 INFO - Found handler: org.openqa.selenium.remote.server.ServicedSession@283d47a9
14:15:12.982 INFO - Handler thread for session 051670a6-0f49-431c-a7d5-668d9fc5e743 (firefox): Executing DELETE on /session/051670a6-0f49-431c-a7d5-668d9fc5e743 (handler: ServicedSession)
1505214912987	Marionette	INFO	New connections will no longer be accepted
14:15:13.203 INFO - Removing session org.openqa.selenium.remote.server.ServicedSession@283d47a9