Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Record double click action in SOAtest [Pre- 9.7]

Options
LegacyForum
LegacyForum Posts: 1,664 ✭✭
edited December 2016 in SOAtest
Here are the instructions to capture double quick action in SOAtest

1) Close SOAtest if it's open
2) There are two copies of UserCusomizableOptions.js files (One for IE and one for Firefox) located under
<SOAtest Installation Directory>/plugins/com.parasoft.xtest.libs.web_VERSION#/root/browsers/ie
<SOAtest Installation Directory>/plugins/com.parasoft.xtest.libs.web_VERSION#/root/browsers/ff/extension/wk@parasoft/chrome/content

where VERSION# is SOAtest version number (ex: 6.2)

3) Add the following snippet at the beginning of the UserCusomizableOptions.js file

CODE
_wk_BrowserDriver.prototype.doDoubleClick = function(locator) {
var element = this.findElement(locator);
_wk_HTMLUtil.triggerMouseEvent(element, 'dblclick', true);
}
4) Open SOAtest
5) Record a new Web functional test and perform double click on desired element
6) When web browser recording completes, open up browser testing tool editor, go under User Action tab, select Other action from drop down menu, and type DoubleClick under Action. Configure the element locator to the element that you want to double-click on.
Tagged:

Tagged