WebDriverモジュール

本ページには広告が含まれています。

Debug

UWSC

Version

モジュールのバージョンを返します。

UWSC

例

UWSC
結果
プレーンテキスト

HideCmd

WebDirver.Start()実行時にコマンドプロンプトを表示しません。

UWSC

Chrome

Chromeを起動。

UWSC
port
WebDriverの待受ポート番号を指定
capabilitres

ChromiumEdge

Edgeを起動。

UWSC
port
WebDriverの待受ポート番号を指定
capabilities

Edge

Edgeを起動。

UWSC
port
WebDriverの待受ポート番号を指定
capabilities

EdgeLegacy

Edgeを起動。

UWSC
port
WebDriverの待受ポート番号を指定
capabilities

Firefox

Firefoxを起動。

UWSC
port
WebDriverの待受ポート番号を指定
capabilities

Start

UWSC
driverpath
Chrome…WebDriver.Chrome
新Edge…WebDriver.EdgeまたはWebDriver.ChromiumEdge
旧Edge…WebDriver.EdgeLegacy
Firefox…WebDriver.Firefox
それ以外のWebDriverはexeのフルパスを指定。
port
WebDriverの待受ポート番号を指定
option

Remote

UWSC
remotehost
リモートPCのホスト名またはIPアドレス
port
Selenium standalone serverの待ち受けポート
capabilities
capabilitiesのjson文字列

Connect

UWSC
session
webdriver.GetSession()で取得したセッション情報

CreateJSArray

UWSC

ParseJson

UWSC

StringifyJson

UWSC

GetLog

UWSC

ClearLog

UWSC

Option

UWSC
browser
ブラウザ種別を表す文字列。chrome、edge、msedge、firefox。

プログラム実行例

Yahoo!検索

UWSC
使用関数

要素取得

idがToolListのテキストを取得。

UWSC
使用関数

新しいタブを操作

UWSC
使用関数

FindElementで要素の取得

UWSC
結果
プレーンテキスト
使用関数

要素をクリック(FOR-IN-NEXT)

UWSC
使用関数

要素をクリック(配列)

UWSC
使用関数