47885/refresh-browser-window-different-using-selenium-webdriver
Hello Piyush, you can refresh a browser window using Selenium Webdriver with following ways:
Refresh command: Most commonly used and simple command for refreshing a webpage. For eg.
driver.get("https://www.facebook.com"); driver.navigate().refresh();
SendKeys command: Second most commonly used command is SendKeys. As it is using a send keys method, we must use this on any Text box on a webpage. For eg.
driver.get("https://www.facebook.com"); driver.findElement(By.name("name")).sendKeys(Keys.F5);
Get command: This one uses another command as an argument to it. It simply feeds get command with a page url. For eg.
driver.get("https://www.facebook.com"); driver.get(driver.getCurrentUrl());
To command: This command is again using the same above concept. navigate( ).to( ) is feeding with a page url and an argument. For eg.
driver.get("https://www.facebook.com"); driver.navigate().to(driver.getCurrentUrl());
SendKeys command: This is same SendKeys command but instead of using Key, it is using ASCII code.
driver.get("https://www.facebook.com"); driver.findElement(By.name("name")).sendKeys("\uE035");
Hi , we have inbuilt method Maximize(). driver.Manage().Wind ...READ MORE
You can use the Navigate interface to ...READ MORE
You can use this String base = ...READ MORE
Hey Trisha, you can read a CSV ...READ MORE
The better way to handle this element ...READ MORE
enable trusted connection in internet explorer by ...READ MORE
To Allow or Block the notification, access using Selenium and you have to ...READ MORE
xpath are two types. 1) Absolute XPath: /html/b ...READ MORE
Hello Akriti, you can clear the text ...READ MORE
Hey Akshay, follow these steps to create ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.