New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Absent Member.
Absent Member.
1122 views

Browser Refresh

Hi,

Does anyone help on the below.

Looking for a code which is developed using QTP to refresh the browser. Need to refresh the browser using QTP scripting. Please share your ideas if you have any.

Thanks,
RK
0 Likes
8 Replies
Highlighted
Absent Member.
Absent Member.

I don't have QTP close and didn't work with it for a while but still doesn't Browser("Browser").Refresh do the job?
0 Likes
Highlighted
Absent Member.
Absent Member.

Browser is not getting refresh when using the code Browser("").Refresh,

Does anyone has any different views on this.

Thanks,
RK
0 Likes
Highlighted
Cadet 3rd Class
Cadet 3rd Class

I am facing the same problem, where browser.refresh gives general run error.
I am facing this problem ever since I hav switched over to 9.5.
Browser.close works ..Browser.navigate doesnt do anything
Browser.refresh throws general run error.
If anyone finds any solution please inform about the solution here.

As a solution you can try the sendkeys method and send F5 ..as a work around.
0 Likes
Highlighted
Absent Member.
Absent Member.

Hi,

Please use the wait statement before and after the following code.

wait 3
Browser("Browser").Refresh
wait 3

it definitely works. It worked for me.

Please give a try

Thanks,
RK
0 Likes
Highlighted
Cadet 3rd Class
Cadet 3rd Class

I had allready tried with keeping wait before refresh statement, but it was not working.

Later on doing some R&D , it i noticed that only when I login to my computer with my XP login ID , those steps gives error.But when I login to the computer with someone else's Login ID, everything works fine.

I rebuilt my profile and everything is working fine now:)
0 Likes
Highlighted
Absent Member.
Absent Member.

Tools->Internet Options

Make sure "Enable third-party browser extesions" is checked.
0 Likes
Highlighted
Absent Member.
Absent Member.



Make sure Tools->Manage Add-ons->Enable or Disable Add-ons->BHOManager Class is Enabled
0 Likes
Highlighted
Knowledge Partner Knowledge Partner
Knowledge Partner

wHandle = Browser("micClass:=Browser").GetROProperty("hwnd")
Window("hwnd:="&wHandle).Type micF5


Mark Smith.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.