last day (15 days later) » 

1:07 PM
0
Q: Select ExtJS combobox item

bilgestackoverflowI'm trying to automate a web site that has ext.net controls in it using Selenium WebDriver and IE as browser. I can't select the combobox. I try to click the arrow to select element from the combobox. I can get the element but I can't click the element, I get ElementNotVisibleException {"Cannot c...

 
Is at mandatory for you to click the item from list of available ones? When I was working with ExtJs I handled combobox the next way: type text into field and then press 'Tab' key (by adding + "\t").
 
Thanks a lot, I actually tried to get the text element. It didn't work. The element can be found with firebug. But I get "NoSuchElementExeption". Could it be that this text is hidden? How can I make it visible?
 
can you share a link to your app?
 
If you mean the web site it is not reachable via internet I'm looking from the test environment. But I really don't get why I can't type in to the text of the combobox
I discover now I can't also get text elements from the page. This should be another problem to consider.
 
Just realized that you search a webelement using Id but I wouldn't do it. Id's in extJs are dynamic, so I would recommend to write a reliable xpath instead of using id's.
 
1:07 PM
Thanks a lot. I will try that way.
Unfortunately the same error occurs if I get try to get the element using xpath ElementNotFoundException...
 
That is strange. I believe xpath is the most reliable way to locate elements.
Can you update your question with the snippet of HTML?
 
1:36 PM
Well, I found that I can only get the html by xpath in this page. I couldn't get the parent divs.
Now it seems I need to create a list of texts by using FindElements...
 
I'm not sure it is relevant to the question we've started from :)
did you manage to type needed text?
 
 
4 hours later…
5:31 PM
No, unfortunately not. I can't get the elements. ElementNotFoundException occurs. I looked at the parent elements and I couldn't get them too. It seems the only thing I can get is html element by xpath. Thanks for your precious effort on trying to help. I think I should find a way to get elements inside the html.
 
 
2 hours later…
7:40 PM
No problem, ExtJS made me to learn xpath also. I believe the problem is in locating elements. The other problems will be not so difficult. Good luck.
 

last day (15 days later) »