The best place to *find* answers to programming/development questions, imo, however it's the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but again, a great reference for *finding* answers.

My Music (Nickleus)


sahi - how to test https gmail in firefox

i'm trying to use sahi to login to my gmail (using firefox) and click on a registration link in an email as a party of my company's sahi test case, but i'm getting the following errors:

Step >_sahi._call("<mpl=default<mplcache=2";), "gmailWindow");< did not complete in 150 seconds.


_popup("gmailWindow")._setValue(_textbox("Email"), "");
Window/Domain not found: popupNameFromStep=gmailWindow; derivedName=; windowName=; windowTitle=; wasOpened=0; domain=


1. click "firefox" in the sahi dashboard

2. click the link "SSL Manager"

3. copy each domain marked with a red dot, into a tab, prefixed by "https://", hit enter, accept security risk mumbo jumbo.

UPDATE 20130320: these are the domains that need to be accepted:

4. go back to the default page: (or close the ff window and reopen it) and open the sahi controller

5. choose my script, e.g. test_gmail_login.sah

my script code looks like this:
var $userMail = "";
_setValue(_emailbox("Email"), $userMail);
_setValue(_password("Passwd"), _prompt("Enter gmail password:"));

NOTE: the username field in gmail uses: _emailbox
NOT _textbox

6. set "" as the "start url", click "set"

7. click "play"

so it DID seem to be an issue with SSL :)


this info is a repost from my original thread on the sahi forums, which i solved myself:
how to use sahi with gmail?


the sahi forum thread Problem with Automating gmail web page (HTTPS SSL certificate error)
suggests adding the following value:

at the end of the file:

when using sahi in gmail. and the sahi documentation page troubleshooting sahi
suggests this value:

but in my case it seems to work without it.


sometimes when i first run the test, i get the following error message after logging into gmail:
Your browser's cookie functionality is turned off. Please turn it on.

all i have to do then is just click "set" in the sahi controller and run the test again and then it works.

No comments:

Post a Comment