zoukankan      html  css  js  c++  java
  • selenium 4 release版发布,新特性介绍

    10.13号期待了几年的selenium 4 release版正式发布

    Selenium 4提供了几个新功能:对定位器、Chrome DevTools、改进的 Selenium Grid 等。

    除了 Java,对于Selenium支持的语言,如PythonC#PHPRubyJavaScript,python语言可使用pip命令升级,如下:

    新功能:当使用find_element_by_id定位时,显示已过时,

     定位方式修改为find_element:

    #学习有疑问请联系作者
    #作者qq:2574674466
    #作者邮箱2574674466@qq.com
    from selenium import webdriver
    from selenium.webdriver.common.by import By
    path= 'D:\se\dr\chromedriver'
    driver = webdriver.Chrome(path)
    driver.get('https://passport.meituan.com/account/unitivelogin?')
    driver.find_element(By.ID,"login-email").send_keys("大牛测试")

    运行后:

    更多介绍请关注“大牛测试”,领取学习视频

     

    欢迎加入交流群:Selenium学习群: 628908894
  • 相关阅读:
    poj3660 最短路/拓扑序
    poj1502 最短路
    poj3259 最短路判环
    poj1680 最短路判环
    一些自己常用的cdn
    bower
    vuejs点滴
    jquery的ajax
    jquery点滴
    githubpage+hexo构建自己的个人博客
  • 原文地址:https://www.cnblogs.com/tim2016/p/15418417.html
Copyright © 2011-2022 走看看