question

socrates.elango avatar image
socrates.elango asked mterry answered

How to double click a web element using selenium session in iTest?

I have a scenario where i need to double click a web element in the WEBGUI , how can we do that using selenium session in iTest?

iTest
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
mterry avatar image
mterry answered

@socrates.elango

iTest Selenium session does not support double click. It does support click, so you might try to do two consecutive clicks. But first you must get a working environment in iTest for your browser. I'm using Chrome and it often updates automatically, meaning you need to have a chromedriver as close as possible to the version of you browser. iTest supports many driver versions, but you may need to have a newer version than what was installed with iTest. For example, iTest 9.3 comes with drivers for versions 104-114. In my case, my Chrome browsers is version 117.

I found a driver via the link above. For the latest versions, you have to pull the JSON endpoints and check the Pretty-print checkbox. Find the version that closely matches you browser and download it.

Next, go to your iTest install directory and find the selenium folder. For Windows, the default installation is in your home directory at AppData/Local/Apps/Spirent Communications/iTest x.x

The drivers are loacated at selenium/drivers/googlechrome

In my case, I simply added a new folder named 117 and pasted the driver chromedriver_117.0.5938.62.exe there.

Next, I created a new Selenium session profile and set the URL of starting page to https://mousetester.com/

Then you can start the session, wait for the web page to appear and click on the designated area. iTest will capture the steps and you can save the steps to an iTest test case from the Capture view.


10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.