API 改造メモ(追加・廃止)
本ページは ソース(Selenium.ComInterfaces および実装)を基準に、このフォルダ内の Sandcastle 生成 HTML より進んでいる API を整理したものです。 トピック欄は、メンバー別 SHFB ページが無い API について 手動まとめトピックfe9a0001-…)へリンクします。 未生成 とある場合は、まだ専用ページが無い状態です。

追加・拡張された API NEW

WebElement(シャドウ DOM・アクセシビリティ・DOM プロパティ)
名前種別説明トピック
GetShadowRoot()メソッドオープンシャドウルートを WebElement として取得(検索は /shadow/.../element 経由)。手動
DomProperty(name)メソッドW3C .../property/:name による DOM プロパティ(属性ではない)。手動
ComputedRoleプロパティアクセシビリティの computed role(W3C)。手動
ComputedLabelプロパティアクセシビリティの computed label(W3C)。手動
Window
名前種別説明トピック
Minimize()メソッドW3C window/minimize による最小化。手動
WebDriver — 起動・ドライバパス
名前種別説明トピック
SetChromeDriverPath(path)メソッドローカル起動時の chromedriver.exe フルパス。手動
SetEdgeDriverPath(path)メソッドローカル起動時の msedgedriver.exe フルパス。手動
SetExcludeEnableAutomationSwitch(enabled)メソッドChrome / Edge で enable-automation を excludeSwitches に追加。手動
WebDriver — スクリーンショット・PDF・ウィンドウ
名前種別説明トピック
TakeFullPageScreenshot(delayms)メソッドフルページスクリーンショット(ChromeDriver .../screenshot/full)。手動
PrintToPdf(outputPath, printOptions)メソッド現在ページを PDF 保存(POST .../print、オプションは Selenium.Dictionary または省略)。手動
OpenNewWindow(type)メソッド新しいタブまたはウィンドウ(tab | window)。戻り値は Dictionary(handle, type)。手動
WebDriver — W3C Actions / Chrome DevTools Protocol
名前種別説明トピック
PerformW3CActions(actionsPayload)メソッドW3C POST .../actions(ペイロードは Dictionary)。手動
ReleaseW3CActions()メソッドW3C DELETE .../actions手動
ChromeDevToolsCommand(cmd, parameters)メソッドChromeDriver POST .../chromium/send_command手動
ChromeDevToolsCommandAndGetResult(cmd, parameters)メソッド同上+結果取得。手動
WebDriver — FedCM / WebAuthn / その他拡張エンドポイント

いずれもドライバ・ブラウザの対応が必要です。詳細は各メンバーの Description(COM インターフェース)を参照してください。

グループメンバー(抜粋)トピック
FedCMFedCmCancelDialog, FedCmSelectAccount, FedCmClickDialogButton, FedCmGetAccountList, FedCmGetTitle, FedCmGetDialogType, FedCmSetDelayEnabled, FedCmResetCooldown手動
WebAuthn(仮想認証器)WebAuthnAddVirtualAuthenticator, WebAuthnRemoveVirtualAuthenticator, WebAuthnAddCredential, WebAuthnGetCredentials, WebAuthnRemoveCredential, WebAuthnClearCredentials, WebAuthnSetUserVerified, WebAuthnSetCredentialProperties手動
Mobile / その他GetNetworkConnectionType, SetNetworkConnectionType, SetSpcTransactionMode, GenerateTestReport, RunBounceTrackingMitigations, SetProtectedAudienceKAnonymity, SetRphRegistrationMode手動
SearchContext(WebDriver / WebElement 共通の検索基底)
名前種別説明トピック
WaitInvisibilityOfElementLocated(by, timeout)メソッド要素が DOM から消えるか非表示になるまで待機(Selenium の invisibilityOfElementLocated 相当)。WaitNotElement は DOM 消失のみ。手動
Manage(ジオロケーション・ネットワーク・センサー等)
名前種別説明トピック
SetTimeZone(timeZoneId)メソッドIANA タイムゾーン ID でブラウザタイムゾーンを上書き(ChromeDriver)。手動
GetNetworkConditions / SetNetworkConditions / DeleteNetworkConditionsメソッドChrome ネットワークエミュレーション。手動
SetPermission(descriptor, state)メソッドW3C POST .../permissions手動
CreateVirtualSensor / UpdateVirtualSensor / RemoveVirtualSensor / GetVirtualSensorInformationメソッド仮想センサー(ChromeDriver)。手動
SetDevicePosture / ClearDevicePostureメソッドデバイスポスチャ(折りたたみ端末など)。手動
SetDisplayFeatures / ClearDisplayFeaturesメソッドディスプレイフィーチャー。手動
Timeouts
名前種別説明トピック
GetW3CTimeouts()メソッドW3C GET /timeouts。戻り値 Dictionary(implicit, pageLoad, script 等)。手動
SetW3CTimeouts(w3cTimeouts)メソッドW3C POST /timeouts手動

廃止・非推奨・レガシー 注意

区分内容
[Obsolete] 属性現行ソース(Selenium プロジェクト)上、COM 公開 API に 付与された廃止指定はありません(2026-04 時点の静的精査)。
実運用上のレガシーPhantomJS はプロジェクト終了済みのため、PhantomJSDriver および Application.PhantomJSDriver新規採用非推奨。既存スクリプト互換のため API は残っています。
IE ドライバIEDriver はブラウザ側のサポート終了に伴い、環境によっては利用できません。

ヘルプの再生成(Sandcastle)

個別トピック(html/*.htm)と目次 selenium.html をビルド出力と一致させるには、Sandcastle Help File BuilderSelenium\Selenium.shfbproj からヘルプを再生成し、生成物を help_jp(または英語版 help)に反映してください。

再生成後は、手作業で行った調整(名前空間リンクの selenium-namespace.html 化、[Missing …] の削除、本ページと手動トピックの突き合わせなど)が再度必要になる場合があります。