Selenium Maximize Window Of Browser

Maximize window in selenium You can maximize window in selenium using maximize() method. Every time you launch browser in selenium test, It will open browser window in small size. So maximize() is most commonly used method in selenium test scripts. Maximize() method works same as user click on browser maximize icon to maximize the window. … Read more

Selenium get url using getCurrentUrl()

Get url in selenium using getCurrentUrl() Method Sometimes you need to get the current url during selenium test. You can get the URL of current open page using getCurrentUrl() method in selenium. getCurrentUrl() method is part of WebDriver interface which extends SearchContext interface. It will fetch the url from current open page in browser. It … Read more

Selenium close browser

Close browser in selenium using close() method To close browser in selenium, You can use close() method. It is used to close current open window on which selenium test is being executed. close() method is part of WebDriver interface which extends SearchContext interface. close() method in selenium will close only current selected window. If multiple browser … Read more

Selenium getTitle() method to get title of page

Selenium get title using getTitle() method If you view source of page, You will find title of the page inside <title> and </title> tags. Selenium getTitle() method is useful to get the title of the page. You can verify or assert that title in selenium test case to check if targeted page is open or … Read more