我是靠谱客的博主 仁爱美女,这篇文章主要介绍Selenium Edge Driver Python 自动化测试,现在分享给大家,希望可以做个参考。

Finally I got it.

没有自动化过edge,今天被小坑了一下,但是还好现在弄好了。

  1. 查看edge 版本,我的是14.14393

在这里插入图片描述
2. https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ 下载edge driver。一定要下载support version的driver哦,否则你单独运行webdriver就会提示你这个版本不匹配。

C:Users***Downloads>MicrosoftWebDriver.exe
This version of MicrosoftWebDriver.exe is not compatible with the installed version of Windows 10.
For more information, visit http://aka.ms/webdriver

直接跑test报的错我也贴过来,免的有人跟我一样,他说检测assert_process_still_running 有问题,其实还是driver不匹配~ 大家要注意哦~

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
ft1.1: <subprocess.Popen object at 0x03A188F0> <subprocess.Popen object at 0x03A188F0> Traceback (most recent call last): File "C:Users***Desktopfirst_webdriver.py", line 15, in setUp self.driver = webdriver.Edge("c:/users/***/downloads/MicrosoftWebDriver.exe") File "C:Python27libsite-packagesseleniumwebdriveredgewebdriver.py", line 34, in __init__ self.edge_service.start() File "C:Python27libsite-packagesseleniumwebdrivercommonservice.py", line 96, in start self.assert_process_still_running() File "C:Python27libsite-packagesseleniumwebdrivercommonservice.py", line 110, in assert_process_still_running % (self.path, return_code) WebDriverException: Message: Service c:/users/***/downloads/MicrosoftWebDriver.exe unexpectedly exited. Status code was: 1

最后:下方这份完整的软件测试视频学习教程已经整理上传完成,朋友们如果需要可以自行免费领取 【保证100%免费】

在这里插入图片描述

最后

以上就是仁爱美女最近收集整理的关于Selenium Edge Driver Python 自动化测试的全部内容,更多相关Selenium内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(49)

评论列表共有 0 条评论

立即
投稿
返回
顶部