Skip to content

Commit 25ce153

Browse files
authored
Update commands.md (#34)
There was a key config miss in java example , it was causing issue , was throwing error The following script arguments are not known and will be ignored: url,statusCode
1 parent 03ab1dc commit 25ce153

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ config.put("responseBody","{\n" +
270270
" }\n" +
271271
" ]\n" +
272272
"}");
273-
((JavascriptExecutor)DriverManager.getDriver()).executeScript("interceptor: addMock",config);
273+
((JavascriptExecutor)DriverManager.getDriver()).executeScript("interceptor: addMock", new HashMap(){{put("config", config); }});
274274
driver.findElement(By.xpath("//android.widget.TextView[contains(@text,'List')]")).click();
275275
```
276276

0 commit comments

Comments
 (0)