2023年3月– date –
-
SeleniumBasic-Tips
SeleniumBasic エラー事例集
SeleniumBasicで発生するエラーを集めてみました。SeleniumBasicに限らず、VBAでコード作成する場合は、エラー、バグとどの様に上手に付き合っていくかが課題になります。Seleniumを利用する場合、通信環境が場所、時間、PCスペック等により待機条件等が... -
SeleniumBasic-Tips
SeleniumBasic AddArgumentメソッドで起動オプション設定
WebDriverクラス直下のAddArgumentメソッドを利用すれば、Chromeブラウザの起動オプションを利用することができます。いくつか使えそうな起動オプションをピックアップして紹介します。 起動オプションについては以下のサイトを参考にさせていただきま... -
SeleniumBasic-Class
SeleniumBasic WebDriverClass ブラウザを扱う基本クラス
【概要】 ブラウザを扱う基本クラスを解説します。事前にWebブラウザを指定せず、Startメソッドでブラウザを指定します。 オブジェクト設定 ・変数宣言 Dim driver As New WebDriver 文法 driver.Start <ブラウザ名>,driver.Get <URL>driver.[... -
SeleniumBasic-Class
SeleniumBasic ProxyClass プロキシサーバーの設定
【概要】 プロキシサーバーの設定用クラスを解説します。簡易的にプロキシサーバーを設定し、動作検証しました。設定結果は、Capabilitiesメソッドにて確認しています。 オブジェクト設定 ・変数宣言 Private Proxy As Proxy ・親クラス:WebDriver 文法 S... -
SeleniumBasic-Class
SeleniumBasic TouchActionsClass タッチスクリーンの一括操作
【概要】 タッチスクリーンの一括ハンドル用クラスの解説です。 オブジェクト設定 ・変数宣言 Dim TouchAction As TouchActions ・親クラス:WebDriver 文法 Set TouchAction = driver.TouchActionsTouchAction.[メソッド] 【メソッド・プロパティ】 メソ... -
SeleniumBasic-Class
SeleniumBasic TouchScreenClass タッチスクリーン操作
【概要】 タッチスクリーンのハンドル用クラスの解説です。 オブジェクト設定 ・変数宣言 Dim TouchScreen As TouchScreen ・親クラス:WebDriver 文法 Set TouchScreen = driver.TouchScreenTouchScreen.[メソッド] 【メソッド・プロパティ】 メソッド Na... -
SeleniumBasic-Class
SeleniumBasic ApplicationClass 代表的なクラス群の呼出し
【概要】 SeleniumBasicの代表的なクラスをまとめたオブジェクト群の解説です。appオブジェクトを生成しておくと、配下クラスのインスタンス生成が不要になります。しかし、ドライバーから独立して利用するクラスの場合は、変数に代入が必要です。 オブジ... -
SeleniumBasic-Class
SeleniumBasic PdfFileClass PDFの新規作成と加工
PDFの新規作成、加工用クラスを解説します。2023年3月現在、テキスト入力は日本語入力対応が不可です。 オブジェクト設定 ・変数宣言 Dim PdfFile As New PdfFile 文法 PdfFile.[メソッド] 【メソッド・プロパティ】 メソッド Name解説ShortExampleAddBook... -
SeleniumBasic-Class
SeleniumBasic PointClass ブラウザのX,Y座標軸取得
【概要】 ブラウザのX,Y座標軸取得用クラスを解説します。 オブジェクト設定 ・変数宣言 Dim Point As Selenium.Point ・親クラス:Location, LocationInView, Window 文法 Set Point = driver.Window.PositionPoint.[プロパティ] 【メソッド・プロパティ... -
SeleniumBasic-Class
SeleniumBasic UtilsClass 便利機能の利用
便利機能関数クラスの解説です。直接SelectBasicで扱うブラウザ操作とは関係ない関数群になります。 オブジェクト設定 ・変数宣言 Dim Utils As New Utils 文法 Utils.[メソッド] 【メソッド・プロパティ】 メソッド Name解説ShortExampleIsMatch正規表現... -
SeleniumBasic-Class
SeleniumBasic SelectElementClass 選択可能なWeb要素操作
【概要】 ドロップダウン等の選択可能なWeb要素ハンドル用のクラスの解説です。 オブジェクト設定 ・変数宣言 Dim select_ele As SelectElement ・親クラス:WebElement.AsSelect 文法 Set select_ele = driver.[SearchContext].AsSelectselect_ele.[メソ... -
SeleniumBasic-Class
SeleniumBasic WaiterClass 待機用関数
【概要】 待機用の関数クラスを解説します。一部メソッドは、64bit版Officeで動作不能になります。 オブジェクト設定 ・変数宣言 Dim Waiter As New Waiter 文法 Waiter.[メソッド] 【メソッド・プロパティ】 メソッド Name解説ShortExampleNot引数がFalse... -
SeleniumBasic-Class
SeleniumBasic TimeoutsClass ドライバーのタイムアウト設定
【概要】 ドライバーのタイムアウト設定用クラスの解説です。ブラウザのタイムアウト設定ではありません。基本的にドライバー配下で利用しますので、宣言で「New」は利用しません。 オブジェクト設定 ・変数宣言 Dim Timeout As Timeouts ・親クラス:WebD... -
SeleniumBasic-Class
SeleniumBasic SizeClass ウィンドウやWeb要素のサイズの取得
【概要】 ウィンドウやWeb要素のサイズの取得用クラスを解説します。 オブジェクト設定 ・変数宣言 Dim Size As Size ・親クラス:WebElement , Window 文法 Set Size = [親クラス].SizeSize.[プロパティ] 【メソッド・プロパティ】 プロパティ Name解説Sh... -
SeleniumBasic-Class
SeleniumBasic CapabilitiesClass ブラウザ設定情報の取得
【概要】 ブラウザ情報の取得、ハンドル用のクラスを解説します。 オブジェクト設定 ・変数宣言 Dim Cap As Dictionary ・親クラス:Manage 文法 Set Cap = driver.Manage.CapabilitiesCap.[メソッド] 【メソッド・プロパティ】 メソッド Name解説ShortExa... -
SeleniumBasic-Class
SeleniumBasic CookieClass クッキー情報の取得
【概要】 Cookieハンドル用クラスを解説します。Cookieの各種情報を取得できます。 オブジェクト設定 ・変数宣言 Dim Cookie As Cookie 文法 Set Cookie = Manage.[FindCookieBy]("<検索値>")Cookie.[メソッド] 【メソッド・プロパティ】 メソッド N... -
SeleniumBasic-Class
SeleniumBasic CookiesClass Cookieの集合体ハンドル
【概要】 Cookieの集合体ハンドル用クラスを解説します。 オブジェクト設定 ・変数宣言 Dim Cookies As Cookies ・親クラス:Manage 文法 Set Cookies = Mng.CookiesCookies.[プロパティ] 【メソッド・プロパティ】 プロパティ Name解説ShortExampleCount... -
SeleniumBasic-Class
SeleniumBasic StorageClass ウェブストレージのハンドル
【概要】 ウェブストレージのハンドル用クラスを解説します。ウェブストレージ(ローカルストレージ、セッションストレージ)を取得し、各種操作をします。 オブジェクト設定 ・変数宣言 Dim Storage As Storage ・親クラス:StorageLocal,StorageSession ... -
SeleniumBasic-Class
SeleniumBasic ManageClass ブラウザ情報の取得
【概要】 ブラウザ情報管理用クラスを解説します。Cookie情報やブラウザバージョン等の情報を取得できます。 オブジェクト設定 ・変数宣言 Dim Mng As Manage ・親クラス:WebDriver 文法 Set Mng = driver.ManageMng.[メソッド] 【メソッド・プロパティ】... -
SeleniumBasic-Class
SeleniumBasic TableElementClass ブラウザ上のテーブルデータ取得
【概要】 Web要素のテーブルハンドル用クラスを解説します。ブラウザ上のテーブルデータを取得し、各種操作をします。 オブジェクト設定 ・変数宣言 Dim tblEle As TableElement 文法 Set tblEle = Driver.[SearhContext].AsTabletblEle.[メソッド] 【メソ...
12