kinofrost
kinofrost

Reputation: 768

Can I perform manual hardware clicks on elements in watir-webdriver?

In Watir I could do this using Win32API and the fact that the elements were OLE-accessible. In watir-webdriver this is no longer the case. I'm not looking to perform a .click, or a .fire_event('click'), but actually take the system mouse pointer and use it on an element. Preferablly to click-and-drag.

My problem is locating the elements on the screen, as the watir-webdriver location and the Win32API location do not appear to be compatible - is there a way to find the element and hardware click on it? If so, will the same code work on two different machines?

Thanks :)

PS. I am aware of the click-and-drag code floating about that is in pure w-webdriver code, but it seems to not like a ZK interface very much.

Also this post has been edited for me to include the Watir tag, but it should be emphasised that the difference between the functionality of Watir and Watir-Webdriver is the reason for this question, and that I am using the latter.

Upvotes: 0

Views: 268

Answers (1)

Chuck van der Linden
Chuck van der Linden

Reputation: 6660

In terms of an IE based solution, have you seen this CheezyWorld Blog Posting on the topic?

Upvotes: 0

Related Questions