haijie1223 Posted November 15, 2023 Posted November 15, 2023 (edited) How to get the URLs and source codes of all web pages in Google Chrome that has been opened without switching pages? Tks #include "wd_core.au3" Global $sDesiredCapabilities, $sSession SetupChrome() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) ;how to get all tabs url and source text??? Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"debuggerAddress": "localhost:9222"}}}}' EndFunc ;==>SetupChrome Edited November 15, 2023 by haijie1223
Danp2 Posted November 15, 2023 Posted November 15, 2023 I don't think this is possible with classic Webdriver because of your requirement to not switch tabs during the process. Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now