I want to get the value of div using webdriver and not Selenium For example :
<div class="headerbande">BIENVENUE</div>
Is there any method in webdriver to get "BIENVENUE" using class name ? Thanks in advance.
With java you would write:
WebElement element = webdriver.findElement(By.className("headerbande"));
Take a look at Introducing the Selenium-WebDriver API by Example for examples in other languages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With