mamaro Posted February 24, 2021 Posted February 24, 2021 Is there a way to use a different port than 9515? on this forum WebDriver UDF (W3C compliant version) - 01/16/2021 - Page 33 - AutoIt Example Scripts - AutoIt Forums (autoitscript.com) they are using port 9515 but I am already using port 9515 for Chrome and changing the port for Edge to something other than 9515 fails. Is it possible to have two separate instances at the same time one for Chrome and one for Edge using the same port?
Nine Posted February 24, 2021 Posted February 24, 2021 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
mamaro Posted February 24, 2021 Author Posted February 24, 2021 I tried 9516 but I got this error "bind() returned an error: Only one usage of each socket address (protocol/network address/port) is normally permitted. (0x2740)"
Nine Posted February 24, 2021 Posted February 24, 2021 Working for me, just started 2 edge webdrivers successfully. Tested on Win7. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Danp2 Posted February 24, 2021 Posted February 24, 2021 @mamaro Please post a short example script so that we can see what you are doing. Otherwise, we can only guess at why it isn't working for you. P.S. You may want to use netstat or tcpview to confirm that the desired port isn't already in use by another process Latest Webdriver UDF Release Webdriver Wiki FAQs
mamaro Posted February 24, 2021 Author Posted February 24, 2021 for clarification, the script open Edge as expected if I use the port is 9515 but, if I tried any other port number it fails. the port number in the script is set as a variable "Local $sEdgeDriverPort = 9515 ; Standard port" and the only thing I am changing in the script when it work and does not is the integer value of $sEdgeDriverPort. I just ran a test using 9815 start to load the driver but the browser does not open [1614200719.704][INFO]: Starting MSEdgeDriver 88.0.705.74 (498de26f3a841db44fe68b74f2d05bb9f2464147) on port 9515 [1614200719.708][INFO]: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping MSEdgeDriver safe. I ran netstat and that port was in used and was never opened
Danp2 Posted February 24, 2021 Posted February 24, 2021 You have to tell both Edge and the Edgedriver to use the alternative port number. This is shown in the code the @Nine linked to earlier. Latest Webdriver UDF Release Webdriver Wiki FAQs
mamaro Posted February 24, 2021 Author Posted February 24, 2021 Correction "I ran netstat and that port was not in used and was never opened"
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