adspace
How to get an attribute value using selenium webdriver?
Answer Posted / Ramesh Singh Brijwal
You can get an attribute value of an element in Selenium WebDriver by calling the `getAttribute()` method on the WebElement instance. For example: `String attrValue = driver.findElement(By.id("element_id")).getAttribute("attribute_name");`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers