- madisonli2007
- Posts : 5
Join date : 2010-08-03
XHR ERROR When accessing an URL (request_code = -1 ), test can not continue
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!
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
Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue
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...
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...
- metmanAmateur
- Posts : 58
Join date : 2010-04-02
Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue
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.
- madisonli2007
- Posts : 5
Join date : 2010-08-03
Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue
Fri Aug 06, 2010 4:55 am
yes this works perfectly. thanks!
- pasabeer
- Posts : 2
Join date : 2010-08-10
Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue
Tue Aug 10, 2010 12:46 pm
Could you please post the complete steps involved in it?
Sabeer
Sabeer
- metmanAmateur
- Posts : 58
Join date : 2010-04-02
Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue
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
http://svn.openqa.org/fisheye/browse/~raw,r=2335/selenium-rc/website/src/main/webapp/options.html
Note the -firefoxProfileTemplate argument
- pasabeer
- Posts : 2
Join date : 2010-08-10
Re: XHR ERROR When accessing an URL (request_code = -1 ), test can not continue
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
Sabeer
- Unable to start script execution in IE browser it is showing IE Script Error with 'Yes' or 'No' buttons for Continue script execution or no.
- got "(firefox:6641):GLib-WARNING **: g_set_prgname() called multiple times" and Test Error
- ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Permission denied
- Error while running a test in Ruby
- Getting the error msg 'Error: Could not find or load main class java-jar' while executing the selenium code in eclipse
Permissions in this forum:
You cannot reply to topics in this forum