Watir-Webdriver: How to click on an element location? -
We have a custom input element that contains several div elements which is the mask behind the canvas element Div element click event Handles it, and it works fine in all browsers.
How can we click such an element in Watir-Webdriver? If we search for div element and use the .click method, then this causes the error:
element is not clickable on point (423, 247) other elements Will receive a click: & lt; Canvas & gt; & Lt; / Canvas & gt; This, of course, will occur before the event bloop. What we want to do is click on the place where the div element (which first clicks the canvas, then bubbles on the div).
We do not want to throw Java events straight in the division, because it does not properly test event bubble.
You can, of course, click on the canvas element like you click on the div but your To answer a question raised by: You can try to access the built-in Selenium-WebDowner browser driver and use the Selenium-WebDrive methods to do this.
driver = $ browser.driver element = driver Find_element (css: 'div.class_name') driver.action.move_to (element) .click.perform < / Div>
Comments
Post a Comment