Selenium4實踐1——對比Selenium3,Selenium4更新了什么?


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-7
        v4.0.0.0-beta-1
        v4.0.0.0-beta-2
        v4.0.0.0-beta-3
        v4.0.0.0-beta-4
        v4.0.0.0-rc-1

官方更新日志

官方基於Java語言的Selenium更新日志地址
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 部分。

v4.0.0.0-alpha-7
v4.0.0.0-beta-1
v4.0.0.0-beta-2
v4.0.0.0-beta-3
v4.0.0.0-beta-4
v4.0.0.0-rc-1

最新版下載 https://github.com/SeleniumHQ/selenium/releases


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM