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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -