Comments (15)
Not sure I understand. You click, an overlay appears (and won't disappear till
you move off), and then you try to click an element under the overlay, which
doesn't work. How is the user able to click the element underneath? Can't you
just do what the user does?
Original comment by [email protected]
on 27 Mar 2012 at 9:28
from chromedriver.
Test case:
WebDriver driver = new ChromeDriver();
driver.get("http://www.illicitonion.com/44/index.html");
driver.findElement(By.id("bottom")).click();
driver.findElement(By.id("top")).click();
The key is, the mouseout event gets rid of the hovering element, so as soon as
the user moves the mouse toward the desired element, the hover disappears, but
the chromedriver does its calculation before trying to move the mouse
Original comment by [email protected]
on 28 Mar 2012 at 5:52
from chromedriver.
I see. This should be fixed.
Until then, tests should do a mouse move and then a click.
Original comment by [email protected]
on 28 Mar 2012 at 5:55
- Changed state: Accepted
from chromedriver.
Original comment by [email protected]
on 6 May 2012 at 7:25
- Changed state: Started
from chromedriver.
Original comment by [email protected]
on 13 Mar 2013 at 11:49
- Changed state: Accepted
from chromedriver.
Original comment by [email protected]
on 13 Mar 2013 at 11:55
- Added labels: Type-Bug
- Removed labels: Type-Defect
from chromedriver.
Original comment by [email protected]
on 14 Mar 2013 at 9:20
- Added labels: Pri-3
from chromedriver.
Original comment by [email protected]
on 14 Mar 2013 at 9:21
- Removed labels: Priority-Low
from chromedriver.
Original comment by [email protected]
on 14 Mar 2013 at 9:49
from chromedriver.
Original comment by [email protected]
on 14 Mar 2013 at 9:49
from chromedriver.
Original comment by [email protected]
on 27 Sep 2013 at 1:24
from chromedriver.
Original comment by [email protected]
on 30 Sep 2013 at 10:52
- Changed state: Verified
from chromedriver.
Original comment by [email protected]
on 21 Feb 2015 at 12:19
- Changed state: Untriaged
from chromedriver.
Unable to reproduce issue with chromedriver:2.15
Please try with latest versions and let us know if you are still facing the
issue.
Sample Code:
System.setProperty("webdriver.chrome.driver","drivers/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(1, TimeUnit.MINUTES);
driver.get("http://alienryderflex.com/mouseover_menus_example.html");
WebElement parent = driver.findElement(By.linkText("Menu 1"));
Actions acts = new Actions(driver);
acts.moveToElement(parent).build().perform();
driver.findElement(By.linkText("Option A")).click();
//acts.click(driver.findElement(By.linkText("Option A"))).build().perform();
driver.switchTo().alert().accept();
System.out.println("complete");
Original comment by [email protected]
on 5 Jun 2015 at 12:35
- Added labels: Needs-Feedback
from chromedriver.
Misinterpreted issue previously.
Able to reproduce issue with chromedriver:2.16, chrome:v43.
When the target link is under any pop-up/menu item, and user tries to click on
it, error is throwing. If the link is not under pop-up/menu item, no error is
generated. Same is working fine firefox.
Please use attached html file to reproduce issue
Sample code:
WebDriver driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(1, TimeUnit.MINUTES);
driver.get("file:///C:/Users/Desktop/Menu.html");
WebElement parent = driver.findElement(By.linkText("Menu 1"));
Actions acts = new Actions(driver);
acts.moveToElement(parent).build().perform();
acts.moveToElement(driver.findElement(By.linkText("Option A"))).build().perform();
Thread.sleep(5000);
driver.findElement(By.id("link1")).click(); // Generates error as link is under menu item
//driver.findElement(By.id("link2")).click(); // Works fine as link is not under menu item
//driver.switchTo().alert().accept();
System.out.println("complete");
Original comment by [email protected]
on 21 Jul 2015 at 12:54
- Removed labels: Needs-Feedback
Attachments:
from chromedriver.
Related Issues (20)
- Standardise CSS colours to RGBA HOT 6
- how can we not wait for the page has finished loading can continue to execute code after click() method HOT 4
- Can no long pass extensions as Base64 encoder CRX files. HOT 3
- Unexpected error. System.Object when using ImplicitlyWait HOT 4
- Finding element by compound CSS selector fails HOT 6
- SendKeys is slow HOT 7
- Java bindings are slow on linux HOT 5
- Headers names (at least for content-length) are interpreted as case-sensitive HOT 6
- Can't access gmail. HOT 4
- Disable popup blocking by default HOT 7
- Update ChromeOptions to include new ChromeDriver capabilities HOT 13
- close() on Chrome Web Driver causes pipe & channel errors HOT 8
- Chrome webdriver hangs (not reponding to check elements with css location HOT 5
- Chrome webdriver hangs (not reponding to check elements with css location) HOT 1
- ChromeDriver calls to Close() or Quit() crash ChromeDriver.exe HOT 22
- Incorrect rect objects are used in Session::GetClickableLocation method HOT 3
- running javascript crashes chromedriver HOT 5
- chromedriver throwing error for collections(find_elements) Selenium::WebDriver::Error::UnknownError: findElements HOT 28
- Chromedriver.exe stays running and leaves behind scoped_dir HOT 12
- chrome.prefs capability works unreliably
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromedriver.