victorvartan
victorvartan

Reputation: 1002

FluentAutomation instruct browser to navigate back

I can't find a way press the browser back button or to inject a script that navigates back using FluentAutomation. Is there any way to do this at all?

Upvotes: 0

Views: 78

Answers (1)

victorvartan
victorvartan

Reputation: 1002

Actually it is possible to inject a script to navigate back, like this:

((IJavaScriptExecutor)FluentTest.ProviderInstance).ExecuteScript(@"window.history.back()");

Upvotes: 2

Related Questions