skip to Main Content

Html – How do I get the value of the aria-label attribute from this WebElement?

Using Java Selenium, I have a reference to a WebElement object that represents the following HTML node: <td role="gridcell" class="mat-calendar-body-cell ng-star-inserted" style="width: 25%; padding-top: 7.14286%; padding-bottom: 7.14286%;" tabindex="-1" data-mat-row="0" data-mat-col="0" aria-label="2001" aria-selected="false">...</td> I need the 2001 value of the aria-label…

VIEW QUESTION

Reactjs – React – Selenium – Testing project – How to get nth element

Using C# I am writing unit tests using Selenium (testing my react front end)...My html is: <article class="company-details-container"> <div class="details-header">...</div> <div class="details-header">...</div> <section class="details-new-section>...</section> <div class="details-header">...</div> <div class="details-header">...</div> <div class="details-header">...</div> </article> Section tag is the contents of each div, when…

VIEW QUESTION
Back To Top
Search