Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

View previous topic View next topic Go down

XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

Post by madisonli2007 on Tue Aug 03, 2010 10:50 pm

This is a very simple test that open firefox to access an URL. But I keep getting this XHR Error with request code = -1. (The website is ok when manually accessing it).

11:39:31.886 INFO - Command request: open[/, ] on session 5e949364fce3407395b46062af7aa77a
11:39:31.918 INFO - Got result: XHR ERROR: URL = http://test.myweb.org/ Response_Code = -1 Error_Message = Request Error on session 5e949364fce3407395b46
062af7aa77a

any ideas? thanks!

madisonli2007

Posts : 5
Join date : 2010-08-03

Back to top Go down

Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

Post by madisonli2007 on Wed Aug 04, 2010 1:06 am

After I added try/catch and wait, it turns out the error was caused by certificate error on the page, since it's a https page.
According to selenium documentation, selenium RC should be able to handle it automatically. But apparently it doesn't.

It would be great if somebody can shed some light on this...

madisonli2007

Posts : 5
Join date : 2010-08-03

Back to top Go down

Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

Post by metman on Wed Aug 04, 2010 4:03 am

Have you created a custom firefox profile to use as the spawn point for your selenium tests? I've run in to problems in certain environments with certs on https pages, but setting up a firefox profile with the certs saved as OK in it and using that to launch the selenium server took care of the problem.

metman
Amateur
Amateur

Posts : 58
Join date : 2010-04-02

Back to top Go down

Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

Post by madisonli2007 on Fri Aug 06, 2010 4:55 am

yes this works perfectly. thanks!

madisonli2007

Posts : 5
Join date : 2010-08-03

Back to top Go down

Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

Post by pasabeer on Tue Aug 10, 2010 12:46 pm

Could you please post the complete steps involved in it?

Sabeer

pasabeer

Posts : 2
Join date : 2010-08-10

Back to top Go down

Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

Post by metman on Wed Aug 11, 2010 8:07 am

http://support.mozilla.com/en-US/kb/managing+profiles

http://svn.openqa.org/fisheye/browse/~raw,r=2335/selenium-rc/website/src/main/webapp/options.html
Note the -firefoxProfileTemplate argument

metman
Amateur
Amateur

Posts : 58
Join date : 2010-04-02

Back to top Go down

Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

Post by pasabeer on Wed Aug 11, 2010 11:01 am

Thanks for the steps. I was able to create a separate profile for FireFox 3.6.2 and able to use it for selenium RC server. Now my test cases are working. Thanks again

Sabeer

pasabeer

Posts : 2
Join date : 2010-08-10

Back to top Go down

Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue

Post by Sponsored content Today at 6:06 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum