I am using 

watir-6.10.2

$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]

My requirement is, to pass custom HTTP Header key value while opening html 
page in the browser using Watir object.
Following are few lines

@browser = Watir::Browser.new :chrome
@browser.goto "https://my-website-example.com/";

Here, I want to pass HTTP headers to 'goto' function or by using any other 
method. HTML header key is user authentication specific. If I pass the 
header, then user logs in to the website automatically. If I do not pass 
the header, then browser opens User Login page.

So, Using this automation, I want user logged in. So, I have to pass HTTP 
header along with this request.

Kindly help.

Thanks,
Nilesh

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to