WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser
Update:
I am able to get through the issue and now I am able to access the chrome with desired url.
Results of trying the provided solutions:
I tried all the settings as provided above but I was unable to resolve the issue
Explanation regarding the issue:
As per my observation DevToolsActivePort file doesn't exist is caused when chrome is unable to find its reference in scoped_dirXXXXX folder.
Steps taken to solve the issue
- I have killed all the chrome processes and chrome driver processes.
Added the below code to invoke the chrome
System.setProperty("webdriver.chrome.driver","pathto\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("useAutomationExtension", false);
WebDriver driver = new ChromeDriver(options);
driver.get(url);
Using the above steps I was able to resolve the issue.
Thanks for your answers.
Problems when running selenium with chromedriver_autoinstaller in Python
The problem was that Docker requires chrome_options.add_argument("--headless")
when running chrome in selenium
Related Topics
Mount Smb/Cifs Share Within a Docker Container
What's the Difference of Section and Segment in Elf File Format
What Does the Number in Parentheses Shown After Unix Command Names in Manpages Mean
Bash While Read Loop Extremely Slow Compared to Cat, Why
How to Ensure Only One Instance of a Bash Script Is Running
How to Redirect Output of Systemd Service to a File
"/Usr/Bin/Ld: Cannot Find -Lz"
Minimal Executable Size Now 10X Larger After Linking Than 2 Years Ago, For Tiny Programs
How to Delete an Exported Environment Variable
How to Run a Shell Script on a Unix Console or MAC Terminal
Format and Then Convert Txt to CSV Using Shell Script and Awk
How to Remove the Lines Which Appear on File B from Another File A
Cronjob Does Not Execute a Script That Works Fine Standalone
Automatically Capture Output of Last Command into a Variable Using Bash
How to Find the Last Field Using 'Cut'