Hi!
Just wondering if its possible to run selenium headless on chrome? Would appreciate if someone could point me in the right direction, been trying to search the net but cant find anything related to autohotkey.
Thanks in advance!
Selenium - Headless chrome? Topic is solved
Re: Selenium - Headless chrome?
autohotkey selenium headless chrome
Anything? Really??
Anything? Really??
Re: Selenium - Headless chrome?
There seems to be some posts related to chrome.ahk, but I cant find anything related to selenium/autohotkey running headless, if you could please pick one of the links and show me i'd appreciate it, but i just cant seem to find oneBoBo wrote: ↑03 Jun 2020, 06:26autohotkey Broken Link for safety selenium headless chrome
Anything? Really??
Re: Selenium - Headless chrome? Topic is solved
Working Example:
Code: Select all
driver := ComObjCreate("Selenium.ChromeDriver")
driver.AddArgument("--disable-gpu")
driver.AddArgument("--headless")
driver.Get("https://www.autohotkey.com/boards/viewtopic.php?f=76&t=76775")
MsgBox % driver.FindElementByXPath("//*[@id='post_content332970']/div").Attribute("innerText")
driver.Quit()
ExitApp
Re: Selenium - Headless chrome?
Thank you so much Xtra for taking the time providing me with a working example, you have no idea how much this is going to help my coworkers with their daily tasks. Thank you x100, much appreciated!Xtra wrote: ↑03 Jun 2020, 11:39Working Example:Code: Select all
driver := ComObjCreate("Selenium.ChromeDriver") driver.AddArgument("--disable-gpu") driver.AddArgument("--headless") driver.Get("https://www.autohotkey.com/boards/viewtopic.php?f=76&t=76775") MsgBox % driver.FindElementByXPath("//*[@id='post_content332970']/div").Attribute("innerText") driver.Quit() ExitApp
Who is online
Users browsing this forum: Holarctic, jameswrightesq and 422 guests