Display results as :

Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c


Selenium IDE - contextMenu and doubleClick not working in smart gwt application

View previous topic View next topic Go down

Selenium IDE - contextMenu and doubleClick not working in smart gwt application

Post by saratdevineni on Sat Jul 24, 2010 12:24 am

Hi All,

We have a smart gwt application. You have a tree on the left hand pane
and user can double click nodes in the tree which opens a tab on the
right hand pane. We can either double click on the node or right click
on it which opens a contextMenu which has an "Edit" menu and which
user can click which opens the tab

I tried using Selenium IDE to automate this. I used the user-
extension.js and user-extension-ide.js supplied by the smart gwt 2.2
distribution in the Selenium IDE options.

doubleClick (locator) command doesn't work at all - it just donesnt give any errors but double-click action is not performed

contextMenu(locator) does work except that during playback, menu opens
at the wrong place rather than on the object identified by the locator
reference. Tried using contextMenuAt but no success

I used fireEvent (locator, "focus") to change the focus still didn't

Any Advice!

Thanks, Sarat


Posts : 1
Join date : 2010-07-23

Back to top Go down

Re: Selenium IDE - contextMenu and doubleClick not working in smart gwt application

Post by ashish on Wed Sep 01, 2010 5:22 pm


we are doing same with Ext-JS application and its working perfectly.

I hope this will help you too.Try this one:

First of all you require to change the location of your elements. Coz because components use generated ids. while recording your click in ExtJS-GWT application you have to change your target path.
at recording time if you notice it will be like : //a[@id='ext-gen66']/em/span/span
then go to target drop down where you will found one more option of "Xpath:Position" select it and see your new path will become like : //div[2]/div[1]/div[1]/ul/li[2]/a[2]/em/span/span

when you perform context menu you have to add 1 step manually. please make click on menu button then after made change according xpath:position(as described above) copy the target and insert the new command below it and set the command to contextmenu and paste the target.then record next click.


Posts : 3
Join date : 2010-08-30
Age : 30
Location : Ahmedabad

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum