ericmckean / chromedriver

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

Elements can no longer receive focus after browser visits about:blank #700

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See http://goo.gl/ll2FvQ for common issues.

Issue Description:
After the browser visits about:blank, elements can no longer receive focus

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

driver = Selenium::WebDriver.for :chrome
2.times do
  driver.get "https://accounts.google.com/SignUp"
  driver.find_element(id: 'FirstName').send_keys('Jimbo')
  driver.get "about:blank"
end
driver.quit

This code fills in a text field, visits about:blank, and then fills in the same 
text field again.

The problem is that the text field will receive focus the first time, but not 
the second time.

However, if "about:blank" is changed to "http://www.google.com", then the field 
will receive focus both times.

If the driver is changed to :firefox, then the field will also receive focus 
both times.

-----Other helpful tips:
Attach your chromedriver log with verbose logging enabled (see
http://goo.gl/5Sx8mC for how to do this).

Original issue reported on code.google.com by jimmyli...@gmail.com on 7 Feb 2014 at 9:58

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
I am not able to reproduce the issue with your test code:-
ystem.setProperty("webdriver.chrome.driver", 
"/usr/local/google/home/gmanikpure/Downloads/chromedriver");

        WebDriver driver = new ChromeDriver();

        int i=1;

                do{
        driver.get("https://accounts.google.com/SignUp");
        driver.findElement(By.id("FirstName")).sendKeys("test");
        Thread.sleep(4000);
        driver.get("about:blank");
        Thread.sleep(4000);
       i++;
                }while(i<=2);
          Thread.sleep(4000);
          driver.quit();

Can you please try with the latest version of chrome & chromedriver and let us 
know

Original comment by gmanikp...@chromium.org on 17 Mar 2015 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by gmanikp...@chromium.org on 30 Mar 2015 at 9:47