Interacting with AJAX???
- From: "Angus" <nospam@xxxxxxxxx>
- Date: Wed, 4 Apr 2007 17:21:41 +0100
Hello
I have learnt that the web application I am automating uses AJAX.
Asynchronous Javascript.
I need to automate the saving of a record. The user clicks a Save button.
I cannot seem to find a button onclick or javascript for the save action.
I have been told that to automate an AJAX application I can to capture the
http request header sent and then I can just recreate this header and send
myself.
I have captured the http request using Live http Headers in firefox - but I
presume the header would be the same in internet Explorer.
The header looks like this:
http://127.0.0.1/arsys/BackChannel
POST /arsys/BackChannel HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3)
Gecko/20070309 Firefox/2.0.0.3
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: text/plain; charset=UTF-8
Referer:
http://127.0.0.1/arsys/forms/angusnotebook/O2_SHR%3ACTI/Default+Admin+View/?
cacheid=6e69ace0
Content-Length: 204
Cookie: JSESSIONID=uKCN4+cdTbJD7Xgcsk7zw-r+T3c
Pragma: no-cache
Cache-Control: no-cache
200/SetEntryList/13/angusnotebook10/O2_SHR:CTI13/angusnotebook0/0/0/2/0/2/0/
2/0/1/41/61/057/5/9/6400000099/2400000059/2400000019/6400000259/64000000132/
5/6/5657544/Demo4/Demo3/1113/22217/5/1/41/41/41/41/4
HTTP/1.x 200 OK
Server: Microsoft-IIS/5.1
Date: Wed, 04 Apr 2007 16:19:33 GMT
Connection: close
X-Powered-By: ServletExec/5.0p06, Servlet/2.4, JSP/2.0
Content-Type: text/plain; charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Last-Modified: Wed, 04 Apr 2007 16:19:34 GMT
----------------------------------------------------------
But using IE object model how would I send that data?
Angus
.
- Follow-Ups:
- Re: Interacting with AJAX???
- From: Igor Tandetnik
- Re: Interacting with AJAX???
- Prev by Date: Re: I am using IHTMLDocument get_Script and want to know what scripts I can call
- Next by Date: Re: Interacting with AJAX???
- Previous by thread: Meta refresh is stealing focus
- Next by thread: Re: Interacting with AJAX???
- Index(es):