I want disable all breakpoint (come from debugger; javascript target app) on selenium Webdriver with Java. My target app run a breakpoint every x seconds and stop my selenium run.
ChromeOptions options = new ChromeOptions();
options.addArguments("start-maximized");
options.addArguments("disable-infobars");
options.addArguments("--disable-extensions");
options.addArguments("--disable- ???? "); <= ???????
WebDriver driver = new ChromeDriver(options);
driver.get("http://rd.huangpuqu.sh.cn/website/html/shprd/shprd_tpxw/List/list_0.htm");
you can find all chome option here but I do not find this feature.
EDIT:
I try this (by Javascript via JavascriptExecutor) but do not work:
((JavascriptExecutor) driver).executeScript("debugger; = function(){};");
or
((JavascriptExecutor) driver).executeScript("debugger = function(){};");
or
((JavascriptExecutor) driver).executeScript("window.debugger = function(){};");
EDIT 2:
I try fix this issue by javascript but do not work:
stackoverflow: How to disable debugger; command in JS?
debugger is not a JavaScript member, it can't be overridden.
EDIT 3:
in the meantime, I asked a new issue on the selenium library here
