Forum Discussion
samirc23
Contributor
thanks for the prompt reply, but if out of 100 xpath assertion, 20 assertion is having different patter and remaining different pattern ?
do i have to mention that which test cases needs to updated or it just update all the test cases which contains xpath assertion ?
nmrao
8 years agoChampion Level 3
Do you mean the below?
20 test steps have one xpath (all have same xpath)
80 test steps have another xpath
Then you can update the xpath conditionally say if current step name is in list1 update xpath1. Similarly if current step name is in list2, then update xpath2.
Hope this helps.
20 test steps have one xpath (all have same xpath)
80 test steps have another xpath
Then you can update the xpath conditionally say if current step name is in list1 update xpath1. Similarly if current step name is in list2, then update xpath2.
Hope this helps.