Forum Discussion

longchasen's avatar
longchasen
Contributor
5 years ago

Simulating Chrome Hard reload

im trying to simulate the chrome hard reload which is CTRL+SHIFT+R

 

here my page: 

page = Sys.Browser().Page("localhostpage");

 

here's how im trying to simulate refresh 

page.Keys("[Hold]^!r");

 

This is not working, any other way how to simulate it?

 

 

 

  • def reload():
    pageObj = Aliases.whatever
    pageObj.Keys("[Hold]^!r[Release]")
  • def reload():
    pageObj = Aliases.whatever
    pageObj.Keys("[Hold]^!r[Release]")
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Also, in addition to what was suggested by hkim5 , you may try to send keystrokes not to web page, but to corresponding Chrome window. (Something like Sys.Browser().BrowserWindow(0).Keys(...) ) Depending on what part of Chrome is responsible for processing this keys combination.