Ruby on Rails Friday, May 31, 2013

Hello everyone

I am using rails 3.2.9 and using "browserstack-screenshot" gem for getting screentshot.
but i am getting the following error message. But i can login using this account setting and can get screenshot on their.

`http_response_code_check': 401 Unauthorized : Authentication Failed! (RuntimeError)


My code:

settings = {:username => "xxxxx", :password => "xxxxxx"}
client = Screenshot::Client.new(settings)

params = {
    :url => "www.google.com",
    :browsers => [
            {:os=>"Windows",:os_version=>"7",:browser=>"ie",:browser_version=>"8.0"}
    ]
}

request_id = @client.generate_screenshots(params)


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b978f08c-d1fc-46b3-9c20-da08fcce6a2f%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment