ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Selenium4实践1——对比Selenium3,Selenium4更新了什么?

2021-12-27 19:02:17  阅读:263  来源: 互联网

标签:grid 0.0 support v4.0 Selenium4 Grid Selenium3 alpha 对比


Selenium4实践1——对比Selenium3更新了什么内容

目录

Selenium4实践1——对比Selenium3更新了什么内容

v4.0.0.0-alpha-1

v4.0.0.0-alpha-2

v4.0.0.0-alpha-3

v4.0.0.0-alpha-4

v4.0.0.0-alpha-5

v4.0.0.0-alpha-6


v4.0.0.0-alpha-1


    Many deprecated methods and classes deleted.
    删除了许多弃用的方法和类。
    Alpha version of new Grid Server, supports “standalone”, “hub”, “node”, and completely distributed usage.
    新Grid服务的Alpha版本,支持“脱机”,“中心”,“结点”和完全的分布式用法。
    Basic support for using Docker containers with the new Grid Server.
    新Grid服务支持基本的使用Docker容器。
    Basic support for CDP landed via the “DevTools” interface.
    支持基本的CDP通过“DevTools”界面登录。
    Basic support for OpenTracing landed. Use the “–ext” flag to the new Grid Server to provide the classpath to an OpenTracing implementation.
    支持基本的OpenTracing使用。在新Grid中使用“–ext”来提供OpenTracing实现的类路径。
    Added support for WebSockets to the HttpClient.
    对客户端增加了WebSockets的支持。
    Location of safari driver now configurable using “webdriver.safari.driver” system property.
    支持使用“webdriver.safari.driver”的系统配置来定位safari driver。
    #6649: Legacy firefox driver respects “webdriver.firefox.logfile” system property.
    待确认
    Added command to open a new window.
    增加了打开一个新窗口的命令。
    Element screenshotting now possible.
    支持元素的截图。
    Selenium Server now no longer includes HtmlUnit by default.
    Selenium服务默认不再包含HtmlUnit。
    New Grid can output logs in single-line json format to stdout.
    新Grid可以对单行的json格式log进行标准格式化。
    #6617 Implement equals() and hashCode() in Select element wrapper
    在Select中实现equals()和hashCode()。


v4.0.0.0-alpha-2


    Add Chromium-based Edge support. This involves adding a new Chromium driver to the tree too.
    增加基于chrome内核的Edge浏览器的支持。这个包括增加了一个新的谷歌内核驱动到现有的驱动列表中。
    Extra domains added for CDP: Network, Performance, Security, Target.
    为CDP增加额外的域:网络,性能,安全,目标。
    Firefox: enable full page screenshots.
    火狐浏览器:能够全屏截图。
    Better support for Java 9+ modules,
    更好的支持了Java9。
    Start reworking HTTP abstractions. These should better support streaming, and so will not require us to hold all requests in memory.
    开始重构对HTTP的抽象。应该能更好的支持流,这将不要求我们将所有的请求都保存住。


v4.0.0.0-alpha-3


    Add “relative” locators. The entry point is through the RelativeLocator.
    Usage is like driver.findElements(withTagName("p").above(lowest));
    增加相对定位,入口点是通过相对定位器。使用示例:driver.findElements(withTagName("p").above(lowest));
    Add chromedriver cast APIs to remote server (#7282)
    将chromedriver cast APIs添加到远程服务器。
    By is now serializable over JSON.
    By现在可以通过Json序列化。
    Add ApplicationCache, Fetch, Network, Performance, Profiler, ResourceTiming, Security and Target CDP domains.
    增加了应用缓存,Fetch,网络,性能,分析器,资源定时,安全和目标CDP域。
    Fixing Safari initialization code to be able to use Safari Technology Preview.
    修复了Safari 初始化码以支持Safari Technology Preview的使用。
    Ensure that the protocol converter handles the new session responses properly.
    确保协议转换器能适当的处理新的session响应。
    Expose devtools APIs from chromium derived drivers.
    待确认
    Expose presence of devtools support on a role-based interface.
    在给予角色的接口中显示devtools的存在。
    Move to new Grid, deleting the old standalone server and grid implementation.
    迁移到新Grid,删除旧的独立服务和结点实施。
    Switch to using HttpHandler where possible. This will impact projects that are extending Selenium Grid.
    在可能的地方替换使用HttpHandler。这将影响到已经扩展使用Selenium Grid的项目。
    Respect “webdriver.firefox.logfile” system property in legacy Firefox driver.Fixes #6649
    待确认
    Back out OpenCensus support: OpenTracing and OpenCensus are merging, so settle on one for now.
    放弃OpenCensus的支持:OpenTracing和OpenCensus在合并,最终定为一个。
    Only allow CORS when using a —allow-cors flag in the Grid server.
    在Grid服务中,使用—allow-cors时,只允许CORS 。
    If you’re using the Java Platform Module System, all modules associated with the project are generated as “open” modules. This will change in a future release.
    如果你使用Java平台模型系统,所有项目的相关的模型将像“开放”模型一样产生。这点将在后续版本中改变。
    The version of Jetty being used is unshadowed.
    正在使用的Jetty版本是无影的。


v4.0.0.0-alpha-4


    Added an “information” command to provide users with better information about how to use features in Selenium.
    增加一个“信息”指令来给用户提供更好的关于怎么使用Selenium特征的信息。
    Rename “friendly” locators to “relative”.
    重命名“friendly”定位到“relative”。
    Chrome Debugging Protocol commands now mirror latest CDP spec.
    Chrome调试协议命令现在镜像于最新的CDP规范。
    Strengthen java deps now rules_jvm_external has been updated.
    加强java deps,现在rules_jvm_external已经被更新了。
    Update EdgeOptions constructor to use new ms:edgeOptions capability name (#7633).
    待确认
    Add support for creating and removing virtual authenticators (#7760).
    增加对虚拟身份验证器创建和删除的支持。
    Add support to debug virtual authenticators (#7842).
    增加对虚拟身份验证器调试的支持。
    Improving error message if a remote side responses with code 405 Method Not Allowed.
    增强远程端返回405Method Not Allowed时的错误信息。
    Better traces via OpenTracing.
    更好的追踪OpenTracing。
    Added Netty-based HTTP client (-Dwebdriver.http.factory=netty)
    增加基于网络HTTP客户(Dwebdriver.http.factory=netty)
    Selenium server now uses Netty.
    Selenium服务现在使用Netty。
    [grid] https between components (#7767)
    [grid]组件之间的https。
    [grid] Added file upload endpoint to the new grid.
    [grid]对新节点增加文件的上传终点。
    [grid] Adding ability to discover and start Edge (both
    chromium-based and legacy).
    [grid]增加发现能力和启动Edge(chromium-based和legacy)
    [grid] Only allow CORS when using a —allow-cors flag.
    [grid]当使用 —allow-cors时只允许CORES。
    [docker] Re-enable existing docker functionality for Grid Nodes.
    [docker]待确认
    Checking for changes in frozen preferences in XPI-based
    FirefoxDriver only.
    待确认


v4.0.0.0-alpha-5


    Implement “minimize window”.
    实现“最小化窗口”。
    Add SameSite attribute to Cookie.
    增加 Cookie的SameSite属性。
    Improve Docker support to use unix domain sockets and the
    DOCKER_HOST env variable.
    改善Docker支持以使用Unix域套接字和DOCKER_HOST环境变量。
    Minimum supported Docker protocol is v1.40. This matches the release on all platforms at 2020-03-13.
    最低支持Docker协议V1.40。这与所有平台上的发型版本匹配。
    Stop driver server when session is over. Fixes #7989.
    当session结束时停止driver服务。
    Reuse the same HTTP client instead of creating a client per
    session. Fixes #7989.
    对于session重用同样的HTTP客户端而不是创建一个新的客户端。
    Sending auth headers to the grid if username and password are specified in the base URL. Fixes #8005.
    如果在基本URL中指定了用户名和密码,则发送身份验证头。
    Replace OpenTracing with OpenTelemetry.
    用OpenTelemetry代替OpenTracing。
    Enabling IPv6 in the Grid, fixes #7541.
    支持在Grid中的IPv6。
    Add response to RemoteWebDriver’s client log level (#7925).
    增加对RemoteWebDriver客户端日志级别的响应。
    Add a command to run the message bus as a standalone component.
    添加命令以将消息总线作为独立组件运行。
    Make “info help” less misleading.
    减少“信息帮助”的误导。


v4.0.0.0-alpha-6


    Ability to proxy CDP commands from the local end through the fully-distributed Grid. The end point to connect to is reported via “se:options -> cdp”.
    能够通过完全分布式的网格从本地代理CDP命令。
    通过“ se:options-> cdp”报告连接到的端点。
    Amended Augmenter to mixin HasDevTools if needed.
    如果需要,将Augmenter修改为mixinHasDevTools。
    Very, very basic support for GraphQL.
    非常,非常基础的支持了GraphQL。
    Ability to configure node on the command line by specifying
    well-known browser names (eg. “-I firefox”).
    通过指定指定知名的浏览器名称(例如“ -I firefox”)在命令行中配置结点。
    Ability to set maximum number of concurrent sessions on a node.
    能够设置节点上的最大并发会话数。
    New reactor-based http client implementation. Set the
    webdriver.http.factory system property to reactor try it out.
    基于反应堆的新HTTP客户端实现。试着设置系统属性 webdriver.http.factory。
    Bumped OpenTelemetry verison to 0.4.0.
    提高OpenTelemetry 的版本到0.4.0。
    Selenium Standalone and Hub now also accept requests to /wd/hub.
    Selenium Standalone和Hub现在也接受对/ wd / hub的请求。
    Implementing file uploading for distributed grid (and deleting
    uploaded files when session is closed).
    实现分布式上床文件(并且在会话关闭时删除上传文件)。
    Fix potential NPE on DeviceRotation. Fixes #8183.
    待确认
    Corrected the documentation for Protected Mode (#8163).
    更正了保护模式的文档。
    Fix comments on Java Actions.moveToElement (#6974).
    加粗样式
    Grid can be configured using TOML files.
    可以使用TOML文件配置网格。
    Fixing sendKeys to handle newline characters properly. Fixes #7886.
    修复sendKeys以正确处理换行符。
    Added a completion command to generate a zsh autocompletion file. This should be saved as _selenium on the fpath.
    添加了一个completion命令来生成一个zsh自动完成文件。
    应该将其另存为fpath上的_selenium。
    New config section in the info command.
    info 命令中更新config 部分。

感谢每一个认真阅读我文章的人,看着粉丝一路的上涨和关注,礼尚往来总是要有的,虽然不是什么很值钱的东西,如果你用得到的话可以直接免费拿走:

① 2000多本软件测试电子书(主流和经典的书籍应该都有了)

② 软件测试/自动化测试标准库资料(最全中文版)

③ 项目源码(四五十个有趣且经典的练手项目及源码)

④ Python编程语言、API接口自动化测试、web自动化测试、App自动化测试(适合小白学习)


⑤ Python学习路线图(告别不入流的学习)

上图的资料 在我的QQ技术交流群里(技术交流和资源共享,广告进来腿给你打断)

可以自助拿走,群号953306497(备注“csdn111”)群里的免费资料都是笔者十多年测试生涯的精华。还有同行大神一起交流技术哦。

标签:grid,0.0,support,v4.0,Selenium4,Grid,Selenium3,alpha,对比
来源: https://blog.csdn.net/m0_59868866/article/details/122178403

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有