ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

ChromeDriver doesn't wait for full Page Load with 2.10 #857

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Issue Description:
Chrome Driver doesn't wait for the page to fully load.

Happen since upgrade Chrome to 36.0.1985.125 m and Chrome Driver to 
v2.10.267521.

Steps to reproduce (if relevant, you MUST provide a simplified html page or
link to public site):

C# example

WebDriverManager.Driver.Navigate().GoToUrl("http://www.carpoint.com.au/all-cars/
dealer/details.aspx?R=AGC-AD-6352030&Cr=0");
var footerText = WebDriverManager.GetText("//div[@id='footer']");
Assert.IsTrue(footerText.Contains("lmct"));
WebDriverManager.Driver.Navigate().GoToUrl("http://www.carpoint.com.au/all-cars/
dealer/details.aspx?R=AGC-AD-6352064&Cr=0");
Assert.True(WebDriverManager.Driver.PageSource.Contains("tcactivity"));

Verify:
Fail upon "tcactivity" verification. Chrome driver doesn't wait for the page to 
load.

Original issue reported on code.google.com by mingz...@gmail.com on 22 Jul 2014 at 4:13

GoogleCodeExporter commented 9 years ago
Please let me know if you need more information to reproduce.

Original comment by mingz...@gmail.com on 22 Jul 2014 at 4:16

GoogleCodeExporter commented 9 years ago
My team started running into the same issue. We can reproduce it with using 
Chrome 
Driver v2.9 and v2.10. I confirm the issue started after Chrome was upgraded to 
36.0.1985.125 m.

Original comment by radek.bo...@gmail.com on 22 Jul 2014 at 9:21

GoogleCodeExporter commented 9 years ago
I can also confirm this issue started occurring with the Chrome upgrade to 
Version 36.0.1985.125 m. Our CI tests started failing randomly on July 17th. 
The CI server is running Version 36.0.1985.125 m. Locally I'm running Version 
35.0.1916.153 m and I don't see these timing issues. I can repro the issue with 
ChromeDriver 2.7 and 2.10.

Original comment by shirley....@gmail.com on 22 Jul 2014 at 2:35

GoogleCodeExporter commented 9 years ago
I am also experiencing this problem. Can we look at a fix? 

Original comment by scott.cl...@gmail.com on 23 Jul 2014 at 12:57

GoogleCodeExporter commented 9 years ago
My team is experiencing this issue since upgrading to 2.10 and the latest 
stable Chrome.

Original comment by stuart.f...@gmail.com on 23 Jul 2014 at 1:00

GoogleCodeExporter commented 9 years ago
The same here...

Original comment by mbpp1...@gmail.com on 24 Jul 2014 at 3:06

GoogleCodeExporter commented 9 years ago
Hi guys,

Is there any possibility to have a look at this issue? Please let me know if 
you need more details.

Cheers,
Ming

Original comment by mingz...@gmail.com on 4 Aug 2014 at 5:42

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago
Unable to reproduce issue with below code:

driver.get("http://www.carpoint.com.au/all-cars/dealer/details.aspx?R=AGC-AD-635
2030&Cr=0");
String str = driver.findElement(By.xpath("//div[@id='footer']")).getText();
Assert.assertTrue(str.contains("LMCT"));
driver.get("http://www.carpoint.com.au/all-cars/dealer/details.aspx?R=AGC-AD-635
2064&Cr=0");
Assert.assertTrue(driver.getPageSource().contains("tcactivity"));

Please try again and let us know if we differ from what you are doing

Original comment by ssudunag...@chromium.org on 4 Mar 2015 at 6:23

GoogleCodeExporter commented 9 years ago

Original comment by ssudunag...@chromium.org on 26 Mar 2015 at 6:21

GoogleCodeExporter commented 9 years ago
May I ask what version of Chrome and Chrome driver you were using?

I can reproduce with 
Chrome 41.0.2272.101
Chrome Driver 2.14.313457

Original comment by mingz...@gmail.com on 27 Mar 2015 at 12:31

GoogleCodeExporter commented 9 years ago
Could you also run the test 5 times? It may pass because the network is too 
fast, so js requests take no time to return.

Original comment by mingz...@gmail.com on 27 Mar 2015 at 12:36

GoogleCodeExporter commented 9 years ago
When we ran the below scenario script, Assert is failing at 2nd iteration. 

Issue is reproducible in Chromev41, ChromeDriver:2.14, Windows 7

Sample Code:
WebDriver driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(1, TimeUnit.MINUTES);
for (int i = 0; i < 5; i++) {
System.out.println("Iteration: "+i);
driver.get("http://www.carpoint.com.au/all-cars/dealer/details.aspx?R=AGC-AD-635
2030&Cr=0");
String str = driver.findElement(By.xpath("//div[@id='footer']"))
                    .getText();
Assert.assertTrue(str.contains("LMCT"));
driver.get("http://www.carpoint.com.au/all-cars/dealer/details.aspx?R=AGC-AD-635
2064&Cr=0");
Assert.assertTrue(driver.getPageSource().contains("tcactivity"));
}

Original comment by ssudunag...@chromium.org on 27 Mar 2015 at 7:27