是否有人知道如何使用Selenium WebDriverJs而非本地Firefox浏览器设置TOR浏览器。我已经看到了Java中的一些示例,但是JavaScript资源不足。
Java示例。 Run TOR browser with Selenium WebDriver
这就是我用来测试我的应用的内容。到目前为止,它可以在Firefox上运行。
class Program
{
static void Main()
{
Foo foo = new Foo { 23 };
foo.Bar();
Console.Write(foo.FooBar);
}
}
class Foo
{
public int FooBar { get; set; }
public void Bar()
{
Foo newFoo = this;
newFoo.FooBar = 96;
}
}