PDA

View Full Version : Combobox for Selenium



denizstij
12 May 2008, 1:48 AM
Hi,

I need to control combobox (gxt) in selenium test. But unfortunately, i can not select items in combox? Any idea how i can do that?

For more detailed info behind the problem, please have a look my previous post (http://extjs.com/forum/showthread.php?t=34873)

Cheers

Deniz

PS:

darrellmeyer
16 May 2008, 8:40 AM
I replied to the previous post.

kirill533
29 Sep 2009, 5:00 AM
1 Step:
Method: click
Locator: "//input[@name='your_combo_name']/following-sibling::img"

2 Step:
Method: click
Locator: "//div[text()='text_of_option' and not(ancestor::*[contains(@style,'display: none') or contains(@style, 'visibility: hidden') or contains(@class,'x-hide-display')])]"
Value:

Don`t forget replace strings "your_combo_name" and "text_of_option"