cancel
Showing results for 
Search instead for 
Did you mean: 

Simulating Chrome Hard reload

SOLVED
Highlighted
Occasional 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?

 

 

 

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

Re: Simulating Chrome Hard reload

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

View solution in original post

3 REPLIES 3
Highlighted
Staff

Re: Simulating Chrome Hard reload

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

View solution in original post

Highlighted
Community Hero

Re: Simulating Chrome Hard reload

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 Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Community Manager

Re: Simulating Chrome Hard reload

Thank yo Justin, Alex!

 

@longchasen did the advice help? 


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors