selenium icon indicating copy to clipboard operation
selenium copied to clipboard

WebDriver Not Compatible with Chrome/65.0.3325.146 on LINUX

Open dipesh17 opened this issue 8 years ago • 43 comments

Meta -

OS: LINUX Selenium Version: 3 .7. 1 Browser:
Chrome/65.0.3325.146

-->

Browser Version:
Chrome/65.0.3325.146 (64-bit)

Expected Behavior -

Webdriver should be able to click on webelement

Actual Behavior -

Test Failed: org.testng.TestException: The following element is not clickable: [[[ChromeDriver: chrome on LINUX (d03e89e10987409f7705777f68e0204c)] -> id: topbar__login]]

searchFuncationality Test Failed: org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value' (Session info: chrome=65.0.3325.146) (Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 3.10.0-693.2.2.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z' System info: host: 'ip-10-30-74-198.eu-west-1.compute.internal', ip: '10.30.74.198', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-693.2.2.el7.x86_64', java.version: '1.8.0_152' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptSslCerts: true, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.33.506092 (733a02544d189e..., userDataDir: /tmp/.org.chromium.Chromium...}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 65.0.3325.146, webStorageEnabled: true} Session ID: 56e57cfa83a7d0ff79500c238608a779

addProductToCart Test Failed: org.testng.TestException: The following element is not clickable: [[[ChromeDriver: chrome on LINUX (f10c1eab1c3034045e01555ef00bef63)] -> css selector: .product-item-link]]

Steps to reproduce -

Pre-requisite: setup a Linux OS and Chrome/65.0.3325.146 (64-bit)

Create a selenium script to perform click operation.

NOTE:

Chrome/65.0.3325.146 (64-bit) and MAC OS: test suite is working as expected on MAC OS.

dipesh17 avatar Mar 07 '18 17:03 dipesh17

you need to upgrade chromedriver to version 2.36 to use Chrome 65

cgoldberg avatar Mar 07 '18 17:03 cgoldberg

upgrading chrome driver to version 2.36 doesn't fix it. Also seeing the problem on Windows 10

EllaVader avatar Mar 07 '18 19:03 EllaVader

Chrome 65 should not be compatible with chromedriver 2.33 💔

I found the release notes a kinda easy overview to see which versions are compatible: https://chromedriver.storage.googleapis.com/2.36/notes.txt

bolmaster2 avatar Mar 07 '18 21:03 bolmaster2

I'm seeing similar issue's too.

I've had to downgrade to v2.34

          Selenium::WebDriver::Error::SessionNotCreatedError:
            session not created exception: Chrome version must be >= 63.0.3239.0
              (Driver info: chromedriver=2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752),platform=Linux 4.14.12-041412-generic x86_64)

GeorgeKaraszi avatar Mar 07 '18 21:03 GeorgeKaraszi

Additionally -- this banner is now a back: "Chrome is being controlled by automated test software" and doing this chromeOptions.AddArgument("--disable-infobars"); doesn't supress it anymore like it used to.

EllaVader avatar Mar 07 '18 21:03 EllaVader

@EllaVader the --disable-infobars flag was removed from Chrome 65.

cgoldberg avatar Mar 07 '18 22:03 cgoldberg

@cgoldberg

  • I've tried upgrading the Chrome driver 2.36 on the Linux operating system, however, I am having test failures and reason, "Element not clickable"
  • Tried with headless and normal chrome browser

dipesh17 avatar Mar 08 '18 09:03 dipesh17

I have also had problems using the CSS selectors to find elemenets (RemoteWebDriver) when upgrading to 2.36 (due to the Chrome 65 update which broke my previous integration with 2.33 ) I moved to 2.35 instead and now everything is working...

herrtunante avatar Mar 08 '18 17:03 herrtunante

For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.

See CONTRIBUTING.md

barancev avatar Mar 08 '18 17:03 barancev

I'm seeing a possibly related issue where for Chrome headless v65 on linux, capybara-webkit / selenium-webdriver is reporting elements as non-visible when they are not on the visible portion of the page displayed in the viewport. You must scroll them into view for them to be considered "visible" by the driver:

(scroll_to taken from: https://stackoverflow.com/a/38085926)

def scroll_to(element)
  script = <<-JS
    arguments[0].scrollIntoView(true);
  JS
  Capybara.current_session.driver.browser.execute_script(script, element.native)
end

top_of_page_element.visible? #=> true
bottom_of_page_element.visible? #=> false, bottom of page is scrolled out of view
scroll_to(bottom_of_page_element)
# Visibility is now reversed, the element at the top of the page is scrolled out of the viewport and reported as non-visible:
top_of_page_element.visible? #=> false
bottom_of_page_element.visible? #=> true

Tested with selenium-webdriver 3.10.0 and google-chrome-stable (65.0.3325.146-1) on Debian GNU/Linux 8.9 (jessie)

tmertens avatar Mar 08 '18 20:03 tmertens

@cgoldberg Regarding the --disable-infobars flag being removed from Chrome 65, what are we supposed to use in it's place to remove that banner?

EllaVader avatar Mar 08 '18 22:03 EllaVader

@EllaVader that is unrelated to the original topic, you should open a separate ticket for discussion.

tmertens avatar Mar 08 '18 23:03 tmertens

@EllaVader that is a question for the chromium/chrome people. That flag is only passed through selenium.

lmtierney avatar Mar 09 '18 02:03 lmtierney

we are also seeing weird elements not being visible with chrome 65 and chromedriver 2.36

kpmueller avatar Mar 09 '18 20:03 kpmueller

if you are having issues with chromedriver, you should submit them to the chromedriver tracker.

and when you do... please be much more descriptive than "seeing weird elements not being visible"

cgoldberg avatar Mar 09 '18 21:03 cgoldberg

I am seeing the same behavior with headless firefox v58.0.1 selenium-webdriver (3.9.0 & 3.10.0) on Debian GNU/Linux 8.9 (jessie) and geckodriver-v0.19.1

(edit: tested using the same steps as my previous comment)

tmertens avatar Mar 09 '18 21:03 tmertens

This also appears to affect non-headless chrome v65.

tmertens avatar Mar 09 '18 22:03 tmertens

Also having issues to get the latest combination to run on Linux - here is the output with my current config:

org.openqa.selenium.WebDriverException: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}
  (Session info: chrome=65.0.3325.146)
  (Driver info: chromedriver=2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752),platform=Linux 4.9.60-linuxkit-aufs x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'

erajkovic avatar Mar 13 '18 07:03 erajkovic

Please stop writing about all chrome-related problems to the same issue report!

Also, for issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.

barancev avatar Mar 13 '18 07:03 barancev

I'm getting this error when I try to run test on linux, did anyone found a solution for this?

Test started: Check user account name [Ljava.lang.StackTraceElement;@1ab06251 null unknown error: unknown sessionId (Session info: chrome=65.0.3325.146) (Driver info: chromedriver=2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752),platform=Linux 4.13.0-1008-gcp x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T18:33:54.468Z' System info: host: 'runner-7899691b-project-5528664-concurrent-065n6r', ip: '10.124.1.167', os.name: 'Linux', os.arch: 'amd64', os.version: '4.13.0-1008-gcp', java.version: '1.8.0_151' Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.36.540471 (9c759b81a907e7..., userDataDir: /tmp/.org.chromium.Chromium...}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 65.0.3325.146, webStorageEnabled: true, webdriver.remote.sessionid: 5728a4d1fc2cdf2d21fac5874c3...} Session ID: 5728a4d1fc2cdf2d21fac5874c30ac47

before chrome update, everything was fine... please help?

sbartoloti avatar Mar 13 '18 12:03 sbartoloti