Powershell+;Ubuntu。你怎么称呼Selenium?

Powershell+;Ubuntu。你怎么称呼Selenium?,powershell,selenium,ubuntu,Powershell,Selenium,Ubuntu,如何在Ubuntu上的Powershell中调用Selenium 在Windows中,您可以执行以下操作: [Reflection.Assembly]::LoadFrom("C:\selenium\net40\WebDriver.dll") $ie = New-Object OpenQA.Selenium.PhantomJS.PhantomJSDriver 但是我不知道如何在Ubuntu中做到这一点。你为什么要在Linux上使用Powershell,而不是使用Java、Python或Ruby

如何在Ubuntu上的Powershell中调用Selenium

在Windows中,您可以执行以下操作:

[Reflection.Assembly]::LoadFrom("C:\selenium\net40\WebDriver.dll")
$ie = New-Object OpenQA.Selenium.PhantomJS.PhantomJSDriver

但是我不知道如何在Ubuntu中做到这一点。

你为什么要在Linux上使用Powershell,而不是使用Java、Python或Ruby Selenium库?Linux上的Powershell是一项非常新的技术,与我提到的所有其他语言不同,它没有得到广泛的支持。请编辑此问题,提供有关如何从标准shell(如Bash)启动selenium的详细信息。然后,也许其他人可以帮助您推断如何将其移植到PS。从简单开始,然后一步一步地变得更有趣。