https://developer.mozilla.org/en-US/docs/Web/WebDriver/Reference/Errors/InvalidSelector
The invalid selector error is a WebDriver error that occurs when an element retrieval command is used with an unknown web element selector strategy.
#webdev
https://developer.mozilla.org/en-US/docs/Web/WebDriver/Reference/Errors/InvalidSelector
The invalid selector error is a WebDriver error that occurs when an element retrieval command is used with an unknown web element selector strategy.
#webdev
Selenium VBAで,要素に
絵文字などUnicode特殊文字を
入力する手順(SendKeys不要)
①外部テキストファイルに
そのUnicode文字列を保管
②VBA側で "ADODB. Stream" で
UTF-8指定して①をReadTextし
変数に保管
③WebDriver経由でJS実行により
要素に②をvalue代入
Selenium VBAで,要素に
絵文字などUnicode特殊文字を
入力する手順(SendKeys不要)
①外部テキストファイルに
そのUnicode文字列を保管
②VBA側で "ADODB. Stream" で
UTF-8指定して①をReadTextし
変数に保管
③WebDriver経由でJS実行により
要素に②をvalue代入
CVE ID : CVE-2026-123993
Published : Nov. 6, 2026, 6:52 p.m. | 21 minutes ago
Description : Hisense VIDAA Smart TV firmware V0000.01.00a.P0220 contains an unauthenticated access vulnerabilit...
CVE ID : CVE-2026-123993
Published : Nov. 6, 2026, 6:52 p.m. | 21 minutes ago
Description : Hisense VIDAA Smart TV firmware V0000.01.00a.P0220 contains an unauthenticated access vulnerabilit...
https://jsindex.com/item/nightwatch
#javascript #testing
https://jsindex.com/item/nightwatch
#javascript #testing
Moli is a production-ready, on-demand, headless browser kernel designed for AI agents, delivering DOM-first, layout-on-demand rendering with a compact resource footprint and support for CDP, WebDriver, and BiDi protocols. It emphasizes structure-driven operations over continuous (1/2)
Moli is a production-ready, on-demand, headless browser kernel designed for AI agents, delivering DOM-first, layout-on-demand rendering with a compact resource footprint and support for CDP, WebDriver, and BiDi protocols. It emphasizes structure-driven operations over continuous (1/2)
Selenium VBA (WebDriver) で,
Chromeの画面上に
現在表示されているWebページの
URLを確かめるには。
Debug.Print "現在のURL:" & driver.GetCurrentURL
イミディエイトウィンドウに出力
https://www.javadrive.jp/excel...
VBEの下部にログとしてテキスト出力される。
Selenium VBA (WebDriver) で,
Chromeの画面上に
現在表示されているWebページの
URLを確かめるには。
Debug.Print "現在のURL:" & driver.GetCurrentURL
イミディエイトウィンドウに出力
https://www.javadrive.jp/excel...
VBEの下部にログとしてテキスト出力される。
Selenium VBA (WebDriver) で,
Chromeの画面上に
特定のDOM要素が現れるまで
待機するには。
https://nkmrdai.com/selenium-w...
' id="fuga" の要素が無い間は待機ループ
Do While (Not driver.IsPresent(By.ID, "fuga") )
driver.Wait 1000
Loop
Selenium VBA (WebDriver) で,
Chromeの画面上に
特定のDOM要素が現れるまで
待機するには。
https://nkmrdai.com/selenium-w...
' id="fuga" の要素が無い間は待機ループ
Do While (Not driver.IsPresent(By.ID, "fuga") )
driver.Wait 1000
Loop
A Browser Engine Growing More Mature With Every Release Moli has released version 1.1.21, delivering another substantial upgrade to its browser runtime, security architecture, storage systems, and automation capabilities. The…
A Browser Engine Growing More Mature With Every Release Moli has released version 1.1.21, delivering another substantial upgrade to its browser runtime, security architecture, storage systems, and automation capabilities. The…
Lightpanda Browser is a lightweight, Zig-written headless browser designed for AI agents and automation, delivering dramatic memory and speed improvements over Chromium while offering CDP/WebDriver support, agent mode, MCP server, and integration with various AI backends. It (1/2)
Lightpanda Browser is a lightweight, Zig-written headless browser designed for AI agents and automation, delivering dramatic memory and speed improvements over Chromium while offering CDP/WebDriver support, agent mode, MCP server, and integration with various AI backends. It (1/2)
It's not covered in the article you linked to (https://www.engadget.com/2014-06-06-this-is-the-truth-behind-webdriver-torso.html), but some […]
It's not covered in the article you linked to (https://www.engadget.com/2014-06-06-this-is-the-truth-behind-webdriver-torso.html), but some […]
Selenium VBA(WebDriver)で
親要素を指定したDOM取得のサンプル
Dim parent_elem As WebElement
Set parent_elem = driver.FindElement(By.CssSelector, "セレクタ1")
' 親要素内で検索
Set elems = driver.FindElementsByCssSelector("セレクタ2", parent_elem)
Selenium VBA(WebDriver)で
親要素を指定したDOM取得のサンプル
Dim parent_elem As WebElement
Set parent_elem = driver.FindElement(By.CssSelector, "セレクタ1")
' 親要素内で検索
Set elems = driver.FindElementsByCssSelector("セレクタ2", parent_elem)
Selenium VBA (WebDriver) で,
CSSセレクタで取得した
DOM要素の配列(コレクション)を
For文でスキャンするサンプル:
Set elems = driver.FindElementsByCssSelector("CSSセレクタ")
For i = 1 To elems.Size
Set elem = elems.Item(i)
~
Next i
Selenium VBA (WebDriver) で,
CSSセレクタで取得した
DOM要素の配列(コレクション)を
For文でスキャンするサンプル:
Set elems = driver.FindElementsByCssSelector("CSSセレクタ")
For i = 1 To elems.Size
Set elem = elems.Item(i)
~
Next i
Selenium VBA(WebDriver)で
「親要素を指定したDOM取得」の際
親要素をWebElementとして
明示的に型宣言しないとエラーになる.
https://help-vba.com/byref-err...
関数の宣言側で
引数に型が指定されていると
バリアント型の変数を渡しても
都合よく自動変化してくれない.
Selenium VBA(WebDriver)で
「親要素を指定したDOM取得」の際
親要素をWebElementとして
明示的に型宣言しないとエラーになる.
https://help-vba.com/byref-err...
関数の宣言側で
引数に型が指定されていると
バリアント型の変数を渡しても
都合よく自動変化してくれない.
Our course covers Manual Testing, Automation Testing, Selenium WebDriver, API Testing, Jira Bug Tracking, and real-time projects.
visit: learnmoretechnologies.in/software-tes...
Our course covers Manual Testing, Automation Testing, Selenium WebDriver, API Testing, Jira Bug Tracking, and real-time projects.
visit: learnmoretechnologies.in/software-tes...
Selenium VBA (WebDriver) で
ページ上からDOM要素を取得する際
セレクタ文字列の後ろに…
① 何も指定しないと,デフォルトでdocumentを起点にサーチする.
② DOM要素を引数に渡すと,その要素の内部でサーチする.
②の場合,引数は
WebElement型として宣言する.
Selenium VBA (WebDriver) で
ページ上からDOM要素を取得する際
セレクタ文字列の後ろに…
① 何も指定しないと,デフォルトでdocumentを起点にサーチする.
② DOM要素を引数に渡すと,その要素の内部でサーチする.
②の場合,引数は
WebElement型として宣言する.
JSに
document.querySelectorAll("CSSセレクタ")
という構文があるので
XPathよりCSSセレクタのほうが
見慣れているかもしれない。
Selenium VBA (WebDriver) で
CSSセレクタで取得した要素の配列は
WebElementsというコレクションに格納され
For文でスキャン可。
JSに
document.querySelectorAll("CSSセレクタ")
という構文があるので
XPathよりCSSセレクタのほうが
見慣れているかもしれない。
Selenium VBA (WebDriver) で
CSSセレクタで取得した要素の配列は
WebElementsというコレクションに格納され
For文でスキャン可。
Selenium VBA (WebDriver) で
XPathではなく,
CSSセレクタで要素を取得する方法:
driver.FindElement(By.XPath, "XPath文字列")
↓
driver.FindElement(By.CssSelector, "CSSセレクタ文字列")
driver.FindElementsByCssSelector("CSSセレクタ文字列")→複数要素
Selenium VBA (WebDriver) で
XPathではなく,
CSSセレクタで要素を取得する方法:
driver.FindElement(By.XPath, "XPath文字列")
↓
driver.FindElement(By.CssSelector, "CSSセレクタ文字列")
driver.FindElementsByCssSelector("CSSセレクタ文字列")→複数要素
https://developer.mozilla.org/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/script/realmCreated
The script.realmCreated event of the script module fires when a new realm is created for a document, a worker, or a worklet.
#webdev
https://developer.mozilla.org/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/script/realmCreated
The script.realmCreated event of the script module fires when a new realm is created for a document, a worker, or a worklet.
#webdev
Selenium VBA (WebDriver) で
driver.FindElement(By.XPath, "XPath文字列")
のXPath文字列の部分が
正しいかどうかを確かめるには.
Chromeの開発者コンソール上で
$x( "XPath文字列" )
と入力すれば,
そのXPathを使って
現在のWebページ上で指定された要素が返る.
Selenium VBA (WebDriver) で
driver.FindElement(By.XPath, "XPath文字列")
のXPath文字列の部分が
正しいかどうかを確かめるには.
Chromeの開発者コンソール上で
$x( "XPath文字列" )
と入力すれば,
そのXPathを使って
現在のWebページ上で指定された要素が返る.
Honolulu #News: St Louis police pitch reality show from 'Law and Order' creator - https://kensbookinfo.blogspot.com/p/us-cities.html#48a
Honolulu #News: St Louis police pitch reality show from 'Law and Order' creator - https://kensbookinfo.blogspot.com/p/us-cities.html#48a
Selenium VBA(WebDriver)から
Chromeを起動し,
driver.NavigateToで
あるURLを開いた後で.
その後に行ないたい操作は,
画面上のあるDOM要素を取得し…
・その要素の状態やDOM属性を調べる
・その要素に文字を入力する
・その要素をクリックする
・待機する
など.
Selenium VBA(WebDriver)から
Chromeを起動し,
driver.NavigateToで
あるURLを開いた後で.
その後に行ないたい操作は,
画面上のあるDOM要素を取得し…
・その要素の状態やDOM属性を調べる
・その要素に文字を入力する
・その要素をクリックする
・待機する
など.
Excel VBAからWebDriverで
Chromeを操作するサンプルコード
Sub hoge()
Set driver = SeleniumVBA.New_WebDriver
driver.StartChrome
driver.OpenBrowser
driver.NavigateTo "https:// www.google.com/"
End Sub
クロームが起動し,Googleが開く.
Excel VBAからWebDriverで
Chromeを操作するサンプルコード
Sub hoge()
Set driver = SeleniumVBA.New_WebDriver
driver.StartChrome
driver.OpenBrowser
driver.NavigateTo "https:// www.google.com/"
End Sub
クロームが起動し,Googleが開く.