Selenium Tutorials 4 - Basic WebDriver Methods

Опубликовано: 20 Октябрь 2024
на канале: subbus tech
256
6

Basic WebDriver Methods:
driver.get – Opens the url provided
driver.getTitle – Gets the title of the page
driver.getCurrentUrl – Gets the current URL
driver.getPageSource – Shows the page source
driver.close – closes the browser
driver.quit – Closes all the browsers opened by Selenium - Child windows etc
driver.getWindowHandle – Returns the window handle
driver.getWindowHandles – Returns all the window handles
driver.switchTo – Switches to an alert or a child window