- madan275
- Posts : 1
Join date : 2014-02-24
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
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
- nitin15790
- Posts : 1
Join date : 2014-03-06
Xpath
Thu Mar 06, 2014 9:59 pm
What is Xpath? How we can use xpath in selenuim webdriver to identify objects?
- ccoxMaster
- Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO
Re: Css/Xpath changes affecting the Selenium automation Effeciency
Sat Mar 08, 2014 1:47 am
Do some research first. driver.findElement(By.xpath("xpathLocation")).click();nitin15790 wrote:What is Xpath? How we can use xpath in selenuim webdriver to identify objects?
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.
Permissions in this forum:
You cannot reply to topics in this forum