Login Prompt - how to?

A

Andrei Caragea

Hello everyone,

Can anyone tell me how I can login to a web page using a login prompt?
http://oit.pdx.edu/files/myfiles1.png

or please point me to a gem or what to study in order to be able to do
this.

I have used Watir until now for normal login pages, but it doesn't seem
to be able to handle prompts.
 
R

Richard Conroy

[Note: parts of this message were removed to make it a legal post.]

That looks like standard HTTP authentication (Basic/Digest).

You will need a regular HTTP client library in order to supply credentials,
like Httparty, HttpClient, Mechanize etc.

You might have better luck with Celerity ( a JRuby implementation of Watir,
that uses a pure java Http Client, instead of automating a browser) - the
API
might expose methods for dealing with HTTP auth instead of form
authentication.

There are a LOT of Ruby HTTP libraries out there - you might have to do a
bit of homework
on them and their feature sets.

Also double check the Watir site. Popups of all kinds are a real annoyance
there, and they
have developed a couple of interesting workarounds. They might also
recommend alternatives
that I haven't mentioned here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top