Why is selenium script not working in chrome version 60? - google-chrome

I am getting
org.openqa.selenium.SessionNotCreatedException: session not created exception
we have selenium-java------- 2.53.0
chrmedriver version -------- 2.23
Any help would be appreciated.

Update your chromedriver with latest version which solve your problem
https://chromedriver.storage.googleapis.com/index.html?path=2.31/
Try this, if you further facing issue then please description

Related

ValueError: There is no such driver by url

Hi I am using Selenium on a mac with Apple M2 chip and since 10 days I keep getting the following error (initially I did not have this error but I changed computers and now I can no longer use Selenium) :
ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/106.0.5249/chromedriver_mac64_m1.zip
I read the following threads about this issue:
https://groups.google.com/g/chromedriver-users/c/JRuQzH3qr2c?pli=1
https://github.com/SergeyPirogov/webdriver_manager/issues/443
But I fail to understand how to fix this problem.
I tried updating webdriver-manager but I still get the same error.
I also downloaded the latest release of chromedriver here https://sites.google.com/chromium.org/driver/ but then fail to understand what to do next.
Any help or comments would be highly appreciated.
found this here - https://github.com/SergeyPirogov/webdriver_manager/pull/445
pip uninstall webdriver_manager
pip install git+https://github.com/SergeyPirogov/webdriver_manager#master

Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 100

I am in the learning phase in the automation.
In my first program, when I am trying to run it, getting below error.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Starting ChromeDriver 100.0.4896.60 (6a5d10861ce8de5fce22564658033b43cb7de047-refs/branch-heads/4896#{#875}) on port 57583
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 100
Current browser version is 102.0.5005.63 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Build info: version: '4.2.0', revision: '86eb611648'
It will be a great help if anybody help me in this to resolve.
Thanks in advance.
So first thing you should do is update your google chorme.
Click on the 3 dots > help > about google chrome > and check if it is already up to date.
After updating, search for webdrive for google chrome.
Download the version that is the same as yours, for example.
Mine is 103. Then download driver 103.
When you've downloaded the driver, unzip it and insert it into your drivers folder on your user's C:.
Example:
C:\Users\lucas\driver
After putting it in, try to run your program again.
Note * I found this out by going to my system variables and accessing the Paths that were in there.
You can probably find and check beforehand. If there is something in one of your paths like this:
C:\Users\lucas\driver
and paste exactly in that path. It will work.

I got this error, ld: library not found for -lerl_interface

I am following this https://docs.ejabberd.im/developer/install-osx/ and got the error, can anyone help?
ejabberd 20.04 supports Erlang/OTP from 19.3 up to 22.3. The new Erlang 23 is not supported yet, see https://github.com/processone/ejabberd/issues/3282
Solution? By now, use an older Erlang version.
Remove -lerl_interface, it is no longer required.

Xpra html5 with Ubuntu 14 server

I installed xpra on Ubuntu server and when I use it to bind to an address and opean an app using:
xpra start --bind-tcp=0.0.0.0:10000 --html=on --start-child=xterm
I get this error:
xpra: error: no such option: --html
Can I use xpra html with ubuntu 14 server?
If yes, please let me know the solution to this problem. Xforwarding is enabled.
If there is a need to update version , can you please tell me how to do that?
Please
Thanks
Sheenam
The version you have installed is too old, try xpra.org downloads

Unable to launch google chrome by selenium 3.4.1

I am using selenium version 3.4.0 and chrome version 59.xxx, Chrome driver version 2.30. Every time its shows error like-
Exception in thread "main" java.lang.NoSuchMethodError:
com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
at
org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:111)
at
org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:32)
at
org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:137)
at
org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:302)
at
org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:88)
at
org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:124)
at SampleTesting.main(SampleTesting.java:8)
Below is my code-
System.setProperty("webdriver.chrome.driver", "D:\\Newfolder\\Selenium jars\\exe files\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("www.google.com");
Please help to resolve my query
thank you very much.
Check your Guava library version. An upgrade to 21.0 should resolve this issue.
Reference: https://github.com/SeleniumHQ/selenium/issues/3880