{"action":"created","issue":{"url":"https://api.github.com/repos/google/webdriver.dart/issues/98","labels_url":"https://api.github.com/repos/google/webdriver.dart/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/google/webdriver.dart/issues/98/comments","events_url":"https://api.github.com/repos/google/webdriver.dart/issues/98/events","html_url":"https://github.com/google/webdriver.dart/issues/98","id":104317344,"number":98,"title":"How to pass Firefox settings","user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T17:32:41Z","updated_at":"2015-09-02T03:55:24Z","closed_at":null,"body":"I failed miserable trying to figure out how to pass something like `'reader.parse-on-load.enabled': false` to Firefox using `desired`. There are examples how to use Java classes (like https://github.com/SeleniumHQ/selenium/blob/master/java/client/src/org/openqa/selenium/firefox/FirefoxProfile.java), but I wasn't yet able to figure out how to do this with webdriver.dart. \r\nAny hint would be appreciated."},"comment":{"url":"https://api.github.com/repos/google/webdriver.dart/issues/comments/136929613","html_url":"https://github.com/google/webdriver.dart/issues/98#issuecomment-136929613","issue_url":"https://api.github.com/repos/google/webdriver.dart/issues/98","id":136929613,"user":{"login":"DrMarcII","id":4109465,"avatar_url":"https://avatars.githubusercontent.com/u/4109465?v=3","gravatar_id":"","url":"https://api.github.com/users/DrMarcII","html_url":"https://github.com/DrMarcII","followers_url":"https://api.github.com/users/DrMarcII/followers","following_url":"https://api.github.com/users/DrMarcII/following{/other_user}","gists_url":"https://api.github.com/users/DrMarcII/gists{/gist_id}","starred_url":"https://api.github.com/users/DrMarcII/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrMarcII/subscriptions","organizations_url":"https://api.github.com/users/DrMarcII/orgs","repos_url":"https://api.github.com/users/DrMarcII/repos","events_url":"https://api.github.com/users/DrMarcII/events{/privacy}","received_events_url":"https://api.github.com/users/DrMarcII/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T03:55:24Z","updated_at":"2015-09-02T03:55:24Z","body":"How Selenium handles Firefox profiles is exceedingly ugly, and falls well into the category of things I don't want to implement. It is also difficult to implement in Dart as it requires zip'ing a directory of files and there isn't a Dart zip library that I know of.\r\n\r\nThat said, if you wanted to create a separate library for encoding a Firefox profile that calls out to command-line zip, I would not be opposed to adding it the support directory. The basic idea would be to create a directory on disk that conforms to whatever a Firefox profile is supposed to look like (this will require significant reverse-engineering of the code for one of the Selenium clients). Then zip that directory with command-line zip, read in the resulting zip file and send it in the appropriate field of the capabilities as a BASE64-encoded string."}}