HashNuke / hound

Elixir library for writing integration tests and browser automation

Home Page:http://hexdocs.pm/hound

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Firefox Profile

Grantimus9 opened this issue · comments

Hello,

I'm attempting to use a custom Firefox Profile (to specify proxy settings), and having trouble understanding how I should implement this. I'm using the default selenium-server, here's my config.exs:

config :hound, browser: "firefox",
              http: [ recv_timeout: 20_000] 

Should I be using make_capabilities in the browser module?

Should I be building a Firefox Browser in Hound.Browser.Firefox.Profile? If I'm reading this correctly, I can use dump to create a b64 encoded string that needs to be passed to Selenium.

In either case, do I then pass a result to Hound.start_session? I am using Hound to crawl sites, rather than for testing, so I call Hound.start_session explicitly.

Thank you very much for the library, I use it all the time.