Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

0
Selenium XPath regular expression for an expression starting with certain String.

Solved 1 Answers 166 Views
0 1

I have an element on a web page where its ID is,

comments-task-6-59ba23e91bb06

 As you can see, it starts with comments-task. How to write a XPath regular expression to identify that?

1 Answer

1
Best answer
1
Here is the Regular Expression. Find the path by using 'Contains' keyword

//*[contains(@id, 'comments-task')]/div/div/div[3]/div[2]/form/button
answered by (91 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors

...