r/selenium • • 25d ago

Selenium Xpath

Can anyone help in writing unique & generic Xpath for Flipkart travel date

0 Upvotes

8 comments sorted by

View all comments

2

u/Pauloedsonjk 25d ago

Tips: 1.You can test in chrome dev tools with :

$x('your xpath')[0]

2.You can paste html in chat gpt and type generate xpath with contains by text

3. In devtools is copy generic xpath element