为了测试目的,我需要
通过浏览窗口()选择一个文件
点击“打开”(将文件上传到网站),然后
点击“上传”。
我如何通过硒来做到这一点呢?因为以下几点不起作用:
# hident2 is the name of "Choose File" element
wd.find_element(By.XPATH("//input[@id='hident2']")).sendKeys("C:\\Users\\file-to-upload.xml");
# input.btn.primary is the name of
我正在安装我的windows服务,并通过批处理文件启动该服务。然而,有时我注意到我的windows服务由于某些原因而停止。我认为原因可能是因为发生了windows更新和服务器重启。
当我查看该服务时,我看到启动类型为“手动”,因此我相信它不会重新启动。
如何将代码更改为以自动启动方式启动?
cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
InstallUtil.exe C:\Websites\Scheduler\Scheduler.exe
NET START "MyService"