Selenium 2.0 for Ext JS

15 views
Skip to first unread message

amaresh ojha

unread,
Mar 22, 2011, 6:12:55 AM3/22/11
to indian-seleni...@googlegroups.com, Selenium - Automated Software Testing
Hi,

I am automating a web application built in Ext JS using selenium RC and xpath ( of course) but the test suite is really unstable and some of the actions randomly fails without any reason .
I am planning to migrate to selenium 2.0 with the webdriver which has a better handling of AJAX application.
Can someone share his/her experience if worked on Ext Js based web app  automation with web drivers ?

Thanks
Amaresh

Rohit A

unread,
Mar 22, 2011, 11:56:57 AM3/22/11
to Indian Selenium Users Group
Hey Amaresh,

I really had a difficult time to automate an application made from ext-
js.

The thing about ext-js is that its filled with dynamic ID's/Elements
which keep changing each time the page is loaded.
So you wont be having a solid object /ID to use in selenium.

I would recommend you to try this method.

Suppose there is a button and it has the following attributes.
-->Element ID - Dynamic
-->Name(Xpath) - Not dynamic
-->Class

I would suggest you to use xpath or u can use the class to get the
Dynamic ID using selenium.getattrubute()..

Let me know if this helped and if we can access the site you are
trying on!
thanks
ro!
Reply all
Reply to author
Forward
0 new messages