Example: driver.get("") ĭ(driver.getCurrentURL()) getCurrentURL() method is passed as an argument to method. This method uses the same concept of recursion as mentioned above. Example: driver.get("") ĭriver.get(driver.getCurrentURL()) 3) Navigate method: In order to achieve this, we need to pass another method as an argument to the get method. Get method can be used in a recursive way to refresh a page. Multiple other ways to refresh a page 2) Get method: tProperty("", "D: \\chromedriver.exe") Īfter page refresh operation… the video has changed Public static void main(String args) throws InterruptedException Close the browser using driver.close() method.Once the page is loaded successfully, refresh the web page using method.Refresh method of Navigation interface does not take any arguments or return any values. Navigation interface methods can be accessed using the command driver.navigate(). Navigation is an interface that is used to perform various browser operations like navigating to the previous page, navigating to next page, page refresh, browser close. Refresh command can be used in a simple way as mentioned below. This command is the most commonly used command across test automation for performing a page refresh operation. This is the inbuilt method for performing page refresh operation provided by Selenium web driver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |