首页 > 其他分享 >QA|selenium打开浏览器后没有执行后面的代码(get请求)|UI自动化测试

QA|selenium打开浏览器后没有执行后面的代码(get请求)|UI自动化测试

时间:2023-05-31 11:47:08浏览次数:41  
标签:exe 浏览器 get 代码 selenium QA 打开

Q:selenium打开浏览器后没有执行后面的代码(get请求)

代码如图:

 原因:webdriver_path应该给的是chromedriver.exe的路径,而不是chrome.exe的路径,写错了,正确的如下:

 查阅参考:Selenium打开浏览器,但拒绝执行下一行代码 - 我爱学习网 (5axxw.com)

标签:exe,浏览器,get,代码,selenium,QA,打开
From: https://www.cnblogs.com/T-Better/p/17445638.html

相关文章

  • selenium-some code
     ======================================fromseleniumimportwebdriverdriver=webdriver.Chrome()driver.get("http://selenium.dev")#driver.quit() fromseleniumimportwebdriveroption=webdriver.ChromeOptions()option.add_experimental......
  • unable to find valid certification path to requested target
    发生这种情况时,很有可能与证书无关,而是某个第三方类库获取不到了我的解决方案,找到原版本的AAR文件放到工程的LIBs目录中,引用到工程中 unabletofindvalidcertificationpathtorequestedtarget最新解决方案(更新于2023-04-08)置顶da_caoyuan已于 2023-04-0811......
  • 二分法应用——搜索旋转数组,以前一直在纠结a[0],a[-1],a[mid], target三者关系,其实最
    62·搜索旋转排序数组  描述给定一个有序数组,但是数组以某个元素作为支点进行了旋转(比如,0124567可能成为4567012)。给定一个目标值target进行搜索,如果在数组中找到目标值返回数组中的索引位置,否则返回-1。你可以假设数组中不存在重复的元素。背完这套刷题模板,真......
  • How to use the shell command to get the version of Linux Distributions All In On
    HowtousetheshellcommandtogettheversionofLinuxDistributionsAllInOne如何使用shell命令获取Linux发行版的版本hostnamectlcat/etc/os-releaselsb_release-aLinuxDistributionsDebianUbuntuRaspberryPiOShttps://en.wikipedia.org/wiki/L......
  • WebClient发送get、post请求(form、json)(功能封装)
    1.情景展示Spring3.0引入了RestTemplate,但是在后来的官方源码中介绍,RestTemplate有可能在未来的版本中被弃用,所谓替代RestTemplate,在Spring5中引入了WebClient作为非阻塞式ReactiveHttp客户端。WebClient处理单个HTTP请求的响应时长并不比RestTemplate更快,但是它处理并发的能......
  • python selenium web网站登录缺口图片验证码识别
    deflogin():driver=webdriver.Chrome("browser_driver/chromedriver.exe")driver.get("http://xxxxxx/#/login")driver.maximize_window()sleep(1)driver.find_element(By.CSS_SELECTOR,'[placeholder="请输入手机号&qu......
  • flutter开发Nuget.exe not found, trying to download or use cached version解决方法
    问题:Nuget.exenotfound,tryingtodownloadorusecachedversion解决方法:首先确保VisualStudio安装,这个是flutter构建Window应用必须的,并且安装了对应的WindowsSDK,通过VisualStudioInstaller安装管理员身份运行cmd窗口,然后执行wingetinstallMicrosoft.NuGet安装NuG......
  • [NextJS] getStaticProps
    Continue... Ref: Next.js产品级的React框架-中文开发入门教学-编写静态页面属性getStaticProps  为了爬虫,所以这么写。importHeadfrom'next/head'exportdefaultfunctionHome(props){const{datalist}=props;return(<div>......
  • Nuget使用教程
    视频链接:.NET6教程,.NetCore2022视频教程,杨中科主讲_哔哩哔哩_bilibiliNeGet了解NuGet以前的手工下载dll:不好找;版本不好匹配;依赖复杂;趋势Linux:apt、yumJavascript:npmJava:Maven、GradlePvthon:pip官网地址:https://www.nuget.org(1)精确搜索(Zack.EFCore.Batch......
  • How can get custom claim
    @@abp7.0openiddictsettingtokenValidateLifetime-->https://stackoverflow.com/questions/75408673/how-can-i-change-the-openiddict-accesstoken-lifetime-in-apb-7 ##--->thanks,ifoundeditPreConfigure<OpenIddictServerBuilder>(builder=>{......