css selectors in place of xpath for selenium locators

>yeah so in all these year, i have always resolved to using xpath whenever i am creating selenium scripts and i need to do stuff with element that have no id. well as you would probably know, xpath executes so slow on IE.

For intance i have a test suite that would run in 1hr 30mins on firefox/ safari but the same test suites would take over 4hrs to run to completion on IE.

So with the help of a colleagues, i have been using css selectors from last week and i can say this has drastically improved the speed of our test and you would notice too much difference between IE and FF/Safari anymore.

It takes some time to get used to but these are some link that might be useful to get start with ….

Enjoy …..

Advertisements
This entry was posted in Software Testing. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s