FluentAutomation指示浏览器导航回来

时间:2015-03-05 14:02:22

标签: fluentautomation

我无法按下浏览器后退按钮或注入使用FluentAutomation导航回来的脚本。有没有办法做到这一点?

1 个答案:

答案 0 :(得分:2)

实际上可以注入一个脚本来导航回来,如下所示:

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