-
AuthorPosts
-
July 26, 2016 at 8:37 pm #3996
Hello everyone
Website: https://www.tjc.co.uk/
After opening the website through selenium ,home page opens successfully but when try to click on any link(for eg.Register) not able to do that.After running the script for around 20-30 mins it throws an error “Timed out waiting for page load” but i have already use implicit wait and page load time out of 30 secs.
Please look this issue and provide the solution asap.
July 27, 2016 at 3:56 pm #3999Hi Naveen,
This website is very slow therefore you need to increase your timeout for 1 min or 2 min (depending on your internet connection speed). After this you can interact with the “register” element.
Following code is working at my end :
FirefoxDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(1, TimeUnit.MINUTES);
driver.manage().timeouts().pageLoadTimeout(1, TimeUnit.MINUTES);
// opening website
driver.get(“https://www.tjc.co.uk/”);
// find and click on register element
driver.findElement(By.cssSelector(“div[class=’header-top’]”)).findElement(By.cssSelector(“a[href=’https://www.tjc.co.uk/register’]”)).click();
August 1, 2016 at 8:12 pm #4010Hello nandan
I am still facing the same problem ,as I applied the same code there .Can u pls look the same once .
August 2, 2016 at 10:31 pm #4011Please paste your exception here in this forum.
August 10, 2016 at 5:51 pm #4012Hello Nandan
The exception which i am getting after not using pageload method is :
xception in thread “main” org.openqa.selenium.TimeoutException: Timed out waiting for page load.
Command duration or timeout: 1803.46 seconds
Build info: version: ‘2.53.0’, revision: ’35ae25b’, time: ‘2016-03-15 16:57:40’
System info: host: ‘Q3JPR00049’, ip: ‘193.168.0.167’, os.name: ‘Windows 7’, os.arch: ‘x86’, os.version: ‘6.1’, java.version: ‘1.8.0_77’
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0.1, platform=WINDOWS, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 4cd907ff-4756-43c4-b495-00117d7ddbf2
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:316)
at New.main(New.java:20)
Caused by: org.openqa.selenium.TimeoutException: Timed out waiting for page load.
Build info: version: ‘2.53.0’, revision: ’35ae25b’, time: ‘2016-03-15 16:57:40’
System info: host: ‘Q3JPR00049’, ip: ‘193.168.0.167’, os.name: ‘Windows 7’, os.arch: ‘x86’, os.version: ‘6.1’, java.version: ‘1.8.0_77’
Driver info: driver.version: unknown
at <anonymous class>.Utils.initWebLoadingListener/<(file:///C:/Users/nmathur1/AppData/Local/Temp/anonymous829254022672909947webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:9071)
at <anonymous class>.WebLoadingListener/e(file:///C:/Users/nmathur1/AppData/Local/Temp/anonymous829254022672909947webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:5142)
at <anonymous class>.WebLoadingListener/<(file:///C:/Users/nmathur1/AppData/Local/Temp/anonymous829254022672909947webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:5150)
at <anonymous class>.fxdriver.Timer.prototype.setTimeout/<.notify(file:///C:/Users/nmathur1/AppData/Local/Temp/anonymous829254022672909947webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:625) -
AuthorPosts
You must be logged in to reply to this topic.