Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
madan275
Posts : 1
Join date : 2014-02-24

Css/Xpath changes affecting the Selenium automation Effeciency Empty Css/Xpath changes affecting the Selenium automation Effeciency

Mon Feb 24, 2014 4:03 pm
Hi All,

I am using Selenium Web driver from last 1year,  i have Developed End-to-End Automation Test Scripts capturing Css/Xpath  for our web application. As part of Agile model, there are changes in Css/Xpath's in every Sprint releases for which i need to find those changes and update everytime, which is timetaking. For every realease we have only 5 days time, but its taking 2 days for me to make the Xpath/Css  changes accordingly and in remaining 3days i am not having time to execute my End-to-End scripts with Wider, which is really impacting the Automation process.

Example:

Say in Sprint2 i have some css like div.itenary-date>span.value.
In Sprint3 its changing as            div.itenary-date>div>span.value


Can anybody tell me the solution for how to maintain this Css/Xpath changes for every build

Regards,
Madan
avatar
nitin15790
Posts : 1
Join date : 2014-03-06

Css/Xpath changes affecting the Selenium automation Effeciency Empty Xpath

Thu Mar 06, 2014 9:59 pm
What is Xpath? How we can use xpath in selenuim webdriver to identify objects?
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

Css/Xpath changes affecting the Selenium automation Effeciency Empty Re: Css/Xpath changes affecting the Selenium automation Effeciency

Sat Mar 08, 2014 1:47 am
nitin15790 wrote:What is Xpath? How we can use xpath in selenuim webdriver to identify objects?
 Do some research first.  driver.findElement(By.xpath("xpathLocation")).click();

To the original post, I would highly suggest having the developers put IDs on these elements. From my understanding this is a simple and best practice that most developers should do anyway. With an ID, you won't run into these issues of having to tweak your scripts every time a new sprint comes around. If your organization values the effort put towards your automation, they should be considering your time to better their processes.
Sponsored content

Css/Xpath changes affecting the Selenium automation Effeciency Empty Re: Css/Xpath changes affecting the Selenium automation Effeciency

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