Skip to Content
JavaによるSelenium WebDriverのハンズオン
book

JavaによるSelenium WebDriverのハンズオン

by Boni Garcia
March 2025
Intermediate to advanced
422 pages
6h 59m
Japanese
O'Reilly Media, Inc.
Content preview from JavaによるSelenium WebDriverのハンズオン

付録 A. Selenium 4の新機能

この付録は、Selenium 4で利用可能な新機能の要約を提供する。この内容の目的は2つある。まず、Seleniumスイートのコアコンポーネント(すなわち、WebDriver、Driver、IDE)の新機能を列挙し、それぞれの側面を説明する本の章へのリンクを提供する。加えて、この付録では、ドキュメントやガバナンスのような、Selenium 4で変更されたSeleniumプロジェクトの他の側面について説明する。第二の目的は、 Selenium 3 から 4 に移行する際に、非推奨の部分と対応する新機能を特定することである。

Selenium WebDriver

Selenium WebDriver 4.0.0 の最初の安定版が 2021 年 10 月 13 日にリリースされた。表 A-1 は、以前の安定版(Selenium WebDriver 3.141.59)と比較して、このバージョンで最も関連する新機能をまとめたものである。

表 A-1. Selenium WebDriver 4の新機能
特徴 説明 セクション

W3C WebDriverの全面採用

Selenium WebDriver API とドライバの間の標準通信プロトコル

第1章

"Selenium WebDriver"

相対ロケーター

ロケーション戦略他のウェブ要素の近さに基づいている。

第3章

「相対的ロケーター

スクリプトをピン留めする

JavaScript の一部を WebDriver セッションにアタッチする。

第4章

「ピン留めスクリプト

エレメントのスクリーンショット

Webページ全体ではなく、Web要素のスクリーンショットをキャプチャする。

第4章

"ウェブエレメントのスクリーンショット"

シャドーDOM

シームレスなアクセスシャドーツリーへ

第4章

"シャドーDOM"

新しいWindowsとタブを開く

別のWindowsやタブに移動する方法が改善された。

第4章

"タブとWindows"

装飾家

WebDriver オブジェクト用ラッパーイベントリスナーを実装する。

第4章

「イベント・リスナー

Chrome DevToolsプロトコル

Chromiumベースのブラウザ(ChromeやEdgeなど)で、DevToolsへのネイティブアクセス。

第5章

「Chrome DevToolsプロトコル

ネットワーク傍受

バックエンドリクエストをスタブアウトし、ネットワークトラフィックを傍受する。

第5章

"Networkインターセプター"

基本認証

ベーシック認証とダイジェスト認証のための簡素化された API

第5章

「ベーシック認証とダイジェスト認証

全ページのスクリーンショット

Webページの全内容をキャプチャする。

第5章

「全ページのスクリーンショット

ロケーション

モック地理位置座標

第5章

「ロケーション・コンテキスト

PDFに印刷する

WebページをPDF文書として保存する。

第5章

「ページを印刷する

WebDriver BiDi

ドライバとブラウザ間の双方向通信

第5章

"WebDriver BiDi"

移行ガイド

このセクションは、Selenium WebDriver 3 を使っている既存のコードベースをバージョン 4 に移行するために必要な変更をまとめたものである。

ロケーター

要素 (FindsBy インタフェース) を発見するためのユーティリティメソッドは、Selenium ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

データサイエンスのための実践線形代数

データサイエンスのための実践線形代数

Mike X Cohen
サイトリライアビリティワークブック ―SREの実践方法

サイトリライアビリティワークブック ―SREの実践方法

Betsy Beyer, Niall Richard Murphy, David K. Rensin, Kent Kawahara, Stephen Thorne, 澤田 武男, 関根 達夫, 細川 一茂, 矢吹 大輔, 玉川 竜司
エンジニアが学ぶ会計システムの「知識」と「技術」

エンジニアが学ぶ会計システムの「知識」と「技術」

広川 敬祐, 五島 伸二, 小田 恭彦, 大塚 晃, 川勝 健司

Publisher Resources

ISBN: 9798341626287