WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser

前端 未结 29 3493
旧巷少年郎
旧巷少年郎 2020-11-21 07:11

I am trying to launch chrome with an URL, the browser launches and it does nothing after that.

I am seeing the below error after 1 minute:

Unable to         


        
29条回答
  •  面向向阳花
    2020-11-21 07:22

    In my case, I'm in a Kubernetes environment where I cannot use the default TMPDIR because it will fill up the temp directory with garbage.

    So I was using this to use a different tmpdir:

    driver = new ChromeDriver(new ChromeDriverService.Builder()
                        .withEnvironment(ImmutableMap.of("TMPDIR", customTmpPath))
                        .build(), options);
    

    But now that I've upgraded everything to the latest, this no longer seems to work. I will need to find a new way to do this.

提交回复
热议问题