rshf / chromedriver

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

Chromedriver can't scroll to element with hidden overflow. #720

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Issue Description:
Chromedriver can't scroll to element with hidden overflow.
Works fine in FireFox.

Steps to reproduce :
1) Open http://jsfiddle.net/ZTt3S/3/ 
2) Switch to iframe
3) click on footer button with id "foo".

Java code:
            driver.get("http://jsfiddle.net/ZTt3S/3/");
                driver.switchTo().frame(0);
                driver.findElement(By.id("foo")).click();

alternative:
1) Download file
2) open file with chromedriver
3) click on footer button with id "foo".

Java code: 
     driver.get("file:///C:/bug/index.html");
     driver.findElement(By.id("foo")).click();

-----Other helpful tips:
Stacktrace:
org.openqa.selenium.WebDriverException: unknown error: Element is not clickable 
at point (32, 1537)
  (Session info: chrome=33.0.1750.117)
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 24 milliseconds
Build info: version: '2.39.0', revision: 
'14fa800511cc5d66d426e08b0b2ab926c7ed7398', time: '2013-12-16 13:18:38'
System info: host: 'xxxx', ip: 'xx.xx.xx.xx', os.name: 'Windows 7', os.arch: 
'x86', os.version: '6.1', java.version: '1.7.0_51'
Session ID: 8bb60c9030c7e656bdf22dd20aa5e682
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, 
browserName=chrome, 
chrome={userDataDir=*\AppData\Local\Temp\scoped_dir6916_13599}, 
rotatable=false, locationContextEnabled=true, version=33.0.1750.117, 
takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, 
handlesAlerts=true, browserConnectionEnabled=false, nativeEvents=true, 
webStorageEnabled=true, applicationCacheEnabled=false, takesScreenshot=true}]
    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:193)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
    at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
    at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:79)

Original issue reported on code.google.com by Yojji...@gmail.com on 28 Feb 2014 at 10:47

Attachments:

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Issue 524 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
This issue is reproducible tested with versions:- 

ChromeDriver:- 2.14
Chrome:- 41.0.2272.101
Selenium:- 2.45

//testcase

WebDriver driver =new ChromeDriver();

driver.get("http://jsfiddle.net/ZTt3S/3/");
driver.switchTo().frame(0);
System.out.println("Item to be clicked: " + 
driver.findElement(By.id("foo")).getText());
driver.findElement(By.id("foo")).click();
Thread.sleep(1000);
driver.quit();

Original comment by agau...@chromium.org on 31 Mar 2015 at 7:30

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 2 Apr 2015 at 10:40