This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can we set Browser capabilities like chrome options and desired capabilities

I tried to set the desired capabilities for the chrome browser using attach method but unfortunately i am getting error can any one able to support for it?

below was the code sample i am trying to use it give attach application Failure

browser = BrowserFactory.launch(BrowserType.CHROME);
 browser = BrowserFactory.attach(new BrowserDescription.Builder().set("download.default_directory", "Path of the directory").build());