Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error in Eclipse IDE(I wrote a simple java code the browser is opening but the page I want to appear doesn't appear.What should I do?)
Error in Eclipse IDE [message #1792845] Wed, 25 July 2018 04:01 Go to next message
Sureka Thalakotuna is currently offline Sureka ThalakotunaFriend
Messages: 1
Registered: July 2018
Junior Member
I wrote a simple java code the browser is opening but the page I want to appear doesn't appear.What should I do?
this is my java code

package new1;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class aa {
public static void main(String[] args) {
System.setProperty("webdriver.gecko.drier","C:\\geckodriver.exe");

System.setProperty("webdriver.chrome.driver","C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
WebDriver driver = new ChromeDriver();

String baseUrl = "http://facebook.com";
driver.get(baseUrl);

driver.close();

}
}


I,m getting this as error

[3728:3472:0724/113227.340:ERROR:gpu_process_transport_factory.cc(1017)] Lost UI shared context.
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
System info: host: 'DESKTOP-H5DQF4H', ip: '172.22.169.57', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:178)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:209)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:132)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at new1.aa.main(aa.java:10)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:33280/status] to be available after 20019 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:187)
... 9 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:148)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 10 more


please help me
Re: Error in Eclipse IDE [message #1792871 is a reply to message #1792845] Wed, 25 July 2018 09:45 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29483
Registered: July 2009
Senior Member
This seems unrelated to Eclipse. Likely better to find a forum that supports openqa.
Previous Topic:reference to JNA 4.1.0 in photon
Next Topic:Exception when running embedded jetty for GWT application
Goto Forum:
  


Current Time: Sun Aug 19 17:56:19 GMT 2018

Powered by FUDForum. Page generated in 0.03236 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top