Hi,
How to Click on Back Button from IE Browser ??
There is a scenario wherein I have to click on Back button from the IE browser to check some condition.
Can anyone share the code?
How to Click on Back Button from IE Browser ??
-
- Posts: 1
- Joined: Fri Jun 03, 2016 4:28 am
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to Click on Back Button from IE Browser ??
Hi rahulguptab4u85,
On way would be to record the corresponding mouse click action on the back button.
The corresponding code for clicking the back button:
Alternatively, you could use JavaScript to perform a variety of actions on the DOM-element.
Reload web page
Navigate to the previous page
Navigate forward
I hope this information will help you.
Sincerely,
Johannes
On way would be to record the corresponding mouse click action on the back button.
The corresponding code for clicking the back button:
Code: Select all
repo.InternetExplorerForm.Back.Click();
Reload web page
Code: Select all
repo.Dom.Self.ExecuteScript("location.reload();");
Code: Select all
repo.Dom.Self.ExecuteScript("history.back();");
Code: Select all
repo.Dom.Self.ExecuteScript("history.forward();");
Sincerely,
Johannes
You do not have the required permissions to view the files attached to this post.