Ask a Question

Simulating Chrome Hard reload

SOLVED
longchasen
Contributor

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?

 

 

 

3 REPLIES 3
hkim5
Staff

def reload():
pageObj = Aliases.whatever
pageObj.Keys("[Hold]^!r[Release]")
Best,
Justin Kim
AlexKaras
Champion Level 2

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.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
sonya_m
SmartBear Alumni (Retired)

Thank yo Justin, Alex!

 

@longchasen did the advice help? 


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: