Updating the browser with Ctrl + F5 in WebDriver using Java

I updated the browser in WebDriver using java, as shown below:

driver.navigate().refresh(); 

How to do this by pressing Ctrl + F5 in WebDriver using Java?

+4
source share
1 answer

I think you can use an instance of WebDriver and Actions, as shown below:

 Actions actionObject = new Actions(driver); actionObject.keyDown(Keys.CONTROL).sendKeys(Keys.F5).keyUp(Keys.CONTROL).performβ€Œβ€‹(); 
+5
source

Source: https://habr.com/ru/post/1432712/


All Articles