Giter Club home page Giter Club logo

Comments (15)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 6 May 2012 at 7:25

  • Changed state: Started

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 13 Mar 2013 at 11:49

  • Changed state: Accepted

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 13 Mar 2013 at 11:55

  • Added labels: Type-Bug
  • Removed labels: Type-Defect

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 14 Mar 2013 at 9:20

  • Added labels: Pri-3

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 14 Mar 2013 at 9:21

  • Removed labels: Priority-Low

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 14 Mar 2013 at 9:49

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 14 Mar 2013 at 9:49

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 27 Sep 2013 at 1:24

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 30 Sep 2013 at 10:52

  • Changed state: Verified

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 21 Feb 2015 at 12:19

  • Changed state: Untriaged

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.