CaptainBeardsEyesBeard Posted 13 hours ago Posted 13 hours ago (edited) Hi My webriver isn't starting The output I currently get is _WD_Option ==> Success [0] : Parameters: Option=Driver Value=H:\WebDriverUDF\chromedriver.exe _WD_Option ==> Success [0] : Parameters: Option=Port Value=9515 _WD_Option ==> Success [0] : Parameters: Option=DriverParams Value=--log-path="H:\AutoIT Scripts\AutomationTest\Framework\chrome.log" _WD_GetFreePort ==> Success [0 / 9515] : Parameters: MinPort=9515 MaxPort=Default _WD_IsLatestRelease ==> Success [0] : True _WD_Startup: OS: WIN_10 X64 19045 _WD_Startup: AutoIt: 3.3.16.1 _WD_Startup: Webdriver UDF: 1.4.0 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: H:\Quality Assurance\WebDriverUDF\chromedriver.exe (64 Bit) _WD_Startup: Params: --log-path="H:\AutoIT Scripts\AutomationTest\Framework\chrome.log" _WD_Startup: Port: 9515 _WD_Startup: Command: "H:\WebDriverUDF\chromedriver.exe" --log-path="H:\\AutoIT Scripts\AutomationTest\Framework\chrome.log" _WD_Startup ==> Success [0] __WD_Post ==> Send / Recv error [6] : HTTP status = 0 _WD_CreateSession ==> Webdriver Exception [10] __WD_Delete ==> Send / Recv error [6] : HTTP status = 0 _WD_DeleteSession ==> Webdriver Exception [10] : Error occurs when trying to delete session >Exit code: 0 Edited 13 hours ago by CaptainBeardsEyesBeard
SOLVE-SMART Posted 13 hours ago Posted 13 hours ago HI @CaptainBeardsEyesBeard 👋 , I strongly guess you missed to add the port also to the DriverParams option like so in your case: _WD_Option('DriverParams', '--port=9515 --log-path="H:\AutoIT Scripts\AutomationTest\Framework\chrome.log') Also next time please show your capabilities string (or json) for a better analysis, thanks 🤝 . Best regards Sven Stay innovative! Spoiler 🌍 Au3Forums 🎲 AutoIt (en) Cheat Sheet 📊 AutoIt limits/defaults 💎 Code Katas: [...] (comming soon) 🎭 Collection of GitHub users with AutoIt projects 🐞 False-Positives 🔮 Me on GitHub 💬 Opinion about new forum sub category 📑 UDF wiki list ✂ VSCode-AutoItSnippets 📑 WebDriver FAQs 👨🏫 WebDriver Tutorial (coming soon)
CaptainBeardsEyesBeard Posted 11 hours ago Author Posted 11 hours ago My setup chrome function is which includes the port no? _WD_Option('Driver', 'H:\Quality Assurance\WebDriverUDF\chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true }}}}'
SOLVE-SMART Posted 11 hours ago Posted 11 hours ago You need the port at two places: _WD_Option('Port', <PORT>) _WD_Option('DriverParams', --port=<PORT> ...) See my post above. Simple replace ... _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"') by this ... _WD_Option('DriverParams', '--port=9515 --log-path="' & @ScriptDir & '\chrome.log"') ... and it should work. Otherwise there are more issues, but I don't think so 😀 . Best regards Sven Danp2 1 Stay innovative! Spoiler 🌍 Au3Forums 🎲 AutoIt (en) Cheat Sheet 📊 AutoIt limits/defaults 💎 Code Katas: [...] (comming soon) 🎭 Collection of GitHub users with AutoIt projects 🐞 False-Positives 🔮 Me on GitHub 💬 Opinion about new forum sub category 📑 UDF wiki list ✂ VSCode-AutoItSnippets 📑 WebDriver FAQs 👨🏫 WebDriver Tutorial (coming soon)
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