我想在Powershell中使用WASP插件。缺乏有关C#的知识,我不知道如何安装它。我已经从https://archive.codeplex.com/?p=wasp下载了存档文件。我在zip中找不到“安装”文件。该页面上也没有安装用户指南。我想从Powershell安装它。我的系统是Windows10,64位。我需要一些帮助,谢谢。
答案 0 :(得分:1)
您可以直接通过PowerShell使用SendKeys。
# Example, start notepad, grab all services and display in in notepad using SendKeys
Notepad
Get-Service | Clip
Start-Sleep -Seconds 1
## .NET:
[void][reflection.assembly]::loadwithpartialname("system.windows.forms")
[system.windows.forms.sendkeys]::sendwait('^v')
但是,WASP和其他工具(如if)是更好的选择。但是,WASP是一个非常古老的项目,并且多年未维护。我和其他许多人一样拥有它,并在过去使用过它。从CodePlex,您需要Visual Studio ( you can use the free community edition)才能将其编译为要导入的DLL。再说一次,它已经很老了。因此,还有其他用于GUI自动化和WASP的工具。
请参阅:
PowerShell module to run a Selenium WebDriver.
PowerShell & Selenium: Automate Web Browser Interactions
PowerShell, Selenium and Browser Automation
用于Windows PowerShell的AutoIt Cmdlet
https://www.autoitscript.com/forum/topic/187775-run-powershell-script-with-autoit https://www.autoitconsulting.com/site/scripting/autoit-cmdlets-for-windows-powershell