Unsupported locator strategy: null

75 views
Skip to first unread message

sabf

unread,
Feb 6, 2020, 9:08:28 AM2/6/20
to webdriver
Hello here!

since chromedriver 76 we get this exception in one of our tests:

org.openqa.selenium.InvalidArgumentException: invalid argument: Unsupported locator strategy: null
  (Session info: chrome=80.0.3987.87)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'anb088.local', ip: '127.0.0.1', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.2', java.version: '1.8.0_242'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 80.0.3987.87, chrome: {chromedriverVersion: 80.0.3987.16 (320f6526c1632..., userDataDir: /var/folders/rc/pyvwxqnj101...}, goog:chromeOptions: {debuggerAddress: localhost:50693}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webdriver.remote.sessionid: 00b867282886828ca01b958dcdb...}
Session ID: 00b867282886828ca01b958dcdbc671d


Is there any known bug?
We wait for an text by javascript on a page, where a canvas game is open in an iframe, developed with the Impact.js-Framework https://impactjs.com/

new WebDriverWait(driver, 60).pollingEvery(Duration.ofSeconds(5)).until((ExpectedCondition<Boolean>) webDriver ->
HTML5TestBase.getJavaScriptExecutor().executeScript("return window.top.parent.document.getElementById('crossWindowMessageContainer').textContent").toString().contains("gameLoadingEnded"));

The same error occur if we try it with this command:
driver.findElement(By.cssSelector("#desktopGameMenu"));


Environment:
chromedriver: 80.0.3987.16
selenium-server-standalone: 3.141.59
Selenium-Grid

Thanks

sabf

unread,
Feb 11, 2020, 2:32:39 AM2/11/20
to webdriver
Additinonal information, with the geckodriver the test works.
Reply all
Reply to author
Forward
0 new messages