2023-01-23

How to validate text length for webtable fields inside particular column using Selenium Java?

I got a table with 5 columns: "Name", "Age" Gender" Occupation" and "Salary":

xpath of "Name" column header:

//button[@class='sort-header-btn' and text()='Name']

And its field xpath is:

//div[@row-id='"+DynamicName+"']//following-sibling::div[@cold-id='Name']

I need to verify that "Dynamic Name" should not be exceed 10 String characters.



No comments:

Post a Comment