Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: Unable to launch URL with chrome (with CFT - Chrome Browser for Automated Testing) with 4.11 version #12457

Closed
naveenanimation20 opened this issue Aug 1, 2023 · 11 comments

Comments

@naveenanimation20
Copy link

What happened?

I have upgraded to selenium version to 4.11, It's downloading the respective Chrome (CFT) Beta version in my .cache folder.
When I try to launch the browser, its launching the browser but while entering the URL, its giving exception:

Note: same issue with stable , Beta, Dev, Canary.

How can we reproduce the issue?

using the follwoing code:
public class BrowserLaunch {

	public static void main(String[] args) {
		
		ChromeOptions co = new ChromeOptions();
		co.setBrowserVersion("beta");
		
		String browserPath = SeleniumManager.getInstance().getDriverPath(co, false).getBrowserPath();
		String driverPath = SeleniumManager.getInstance().getDriverPath(co, false).driverPath;
		System.out.println(browserPath);
		System.out.println(driverPath);

		WebDriver driver = new ChromeDriver(co);
		driver.get("https://www.google.com");
		System.out.println(driver.getTitle());
		
	}

}

Relevant log output

/Users/naveenautomationlabs/.cache/selenium/chrome/mac-x64/116.0.5845.49/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing
/Users/naveenautomationlabs/.cache/selenium/chromedriver/mac-x64/116.0.5845.49/chromedriver
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.
Exception in thread "main" java.lang.IllegalArgumentException: http://:-1/json/version could not be parsed into a proper Uri, missing host
	at org.asynchttpclient.uri.Uri.create(Uri.java:73)
	at org.asynchttpclient.uri.Uri.create(Uri.java:62)
	at org.asynchttpclient.RequestBuilderBase.setUrl(RequestBuilderBase.java:147)
	at org.asynchttpclient.Dsl.request(Dsl.java:73)
	at org.openqa.selenium.remote.http.netty.NettyMessages.toNettyRequest(NettyMessages.java:57)
	at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:55)
	at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
	at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:55)
	at org.openqa.selenium.remote.http.netty.NettyHttpHandler.execute(NettyHttpHandler.java:48)
	at org.openqa.selenium.remote.http.netty.NettyClient.execute(NettyClient.java:96)
	at org.openqa.selenium.devtools.CdpEndpointFinder.getCdpEndPoint(CdpEndpointFinder.java:58)
	at org.openqa.selenium.chromium.ChromiumDriver.lambda$new$3(ChromiumDriver.java:144)
	at java.util.Optional.flatMap(Optional.java:241)
	at org.openqa.selenium.chromium.ChromiumDriver.<init>(ChromiumDriver.java:144)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:88)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:83)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:72)
	at demo.BrowserLaunch.main(BrowserLaunch.java:20)

Operating System

MAC OS

Selenium version

Java 4.11.0

What are the browser(s) and version(s) where you see this issue?

Chrome 115, 116, 117

What are the browser driver(s) and version(s) where you see this issue?

chromedriver 115, 116, 117

Are you using Selenium Grid?

No response

@github-actions
Copy link

github-actions bot commented Aug 1, 2023

@naveenanimation20, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@titusfortner
Copy link
Member

I'm pretty sure this is a Google bug and needs to be reported to https://github.com/GoogleChromeLabs/chrome-for-testing/issues

@bonigarcia saw this for Dev & Canary, but we didn't see it for stable or beta. If you are seeing this for stable, please turn on logging and run with stable so we can see what is getting sent to the driver - https://www.selenium.dev/documentation/webdriver/troubleshooting/logging/

@sanoj-s
Copy link

sanoj-s commented Aug 1, 2023

Able to start the chrome driver session and also able to launch the application ONLY when we use the WebDriverManager as below:
WebDriverManager.chromedriver().setup();
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com/");

I am also expecting it should work with SeleniumManager, without using the third-party dependency WebDriverManager.

@diemol
Copy link
Member

diemol commented Aug 1, 2023

This is an issue with Chrome Beta, inside ChromeOptions, the value debuggerAddress -> :-1, when it should be something like debuggerAddress -> localhost:64533.

@diemol
Copy link
Member

diemol commented Aug 1, 2023

I reported this to the Google folks https://bugs.chromium.org/p/chromedriver/issues/detail?id=4533.

There is little we can do about the Beta version for now. Let's close this and wait for their response.

@diemol diemol closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
@soumyajit0905
Copy link

@diemol thank you so much.
I also saw the issue in Canary.
image
cc @bonigarcia @naveenanimation20

@naveenanimation20
Copy link
Author

any updates on this issue? Now its working fine with current chrome browser version (116) but same issue with dev, beta and canary versions.

@diemol
Copy link
Member

diemol commented Aug 19, 2023

Have you checked the ChromeDriver bug report for updates?

@SanghamitraBhowmick1993

Is there a solution or workaround available for this issue? The URI missing error persists even with Chrome Browser version 118, and upgrading the Selenium version does not appear to resolve the problem.

@titusfortner
Copy link
Member

Google fixed the reported issue above. You can open a new issue and provide code and logs, but most likely we will just send you to chromedriver tracker.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants