[Webtest] Webtest and AJAX

Soula, William Soula, William" <wsoula@pointserve.com
Wed, 10 Sep 2008 13:33:17 -0500


--_000_93B3B6122B906D44BC7E8B8CEFB0DBBB18451F287CSGPEXCHANGEpo_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Same problem again now the images are in a flickr account I created for thi=
s: http://www.flickr.com/photos/30374652@N03/2845700355/ and http://www.fli=
ckr.com/photos/30374652@N03/2846534450/

________________________________
From: Soula, William
Sent: Wednesday, September 10, 2008 1:22 PM
To: 'webtest@lists.canoo.com'
Subject: Re: [Webtest] Webtest and AJAX

Last attempt got filtered out for being too big.  I deleted some of the res=
ponse below and am trying again.

________________________________
From: Soula, William
Sent: Wednesday, September 10, 2008 1:14 PM
To: 'Harman Birdi'; 'webtest@lists.canoo.com'
Subject: RE: [Webtest] Webtest and AJAX

I'm kinda busy, any help here list?

________________________________
From: Harman Birdi [mailto:harman.birdi@gmail.com]
Sent: Wednesday, September 10, 2008 12:33 PM
To: Soula, William
Subject: Re: [Webtest] Webtest and AJAX


William - Could you please let me know in what situation you had to use XPa=
th? For me, I have a input field which
gets a dynamic dropdown values as I type (AJAX with XMLHttpRequest and XMLR=
esponseText), which I can select.
I can see with Firebug that the following is happening, but how do I get th=
e value that I want to select for the
input field.

The place where it shows "Elma Axtell" is where I am typing and it retrieve=
s all the possible values using Ajax
dynamically. The XPath expression to the left shows the possible choices. H=
ow do I narrow it to the one I want
to pick since there are no attributes there that I can use. You can see tha=
t in the HTML of the Firebug window.
Once I select the value here, the hidden field associated with the input fi=
eld gets the id of the selected value.

I would really appreciate it if you could point me to the right direction. =
I have attached couple of snapshots of the
application, so you know what I am referring to.

Thanks,
--Harman

On Wed, Sep 10, 2008 at 10:05 AM, Soula, William <wsoula@pointserve.com<mai=
lto:wsoula@pointserve.com>> wrote:
You can use xpather to find xpaths (it is a firefox extension) although I g=
enerally don't like them as they are absolute xpaths instead of relative, w=
hich is more robust.  I got most of my XPath knowledge from this site: http=
://www.w3schools.com/xpath/default.asp  XPath is very powerful and has gott=
en me out of a lot of situations.


--_000_93B3B6122B906D44BC7E8B8CEFB0DBBB18451F287CSGPEXCHANGEpo_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D256153218-10092008><FONT face=3DA=
rial=20
color=3D#0000ff size=3D2>Same problem again now the images are in a flickr =
account I=20
created for this: <A=20
href=3D"http://www.flickr.com/photos/30374652@N03/2845700355/">http://www.f=
lickr.com/photos/30374652@N03/2845700355/</A>&nbsp;and=20
<A=20
href=3D"http://www.flickr.com/photos/30374652@N03/2846534450/">http://www.f=
lickr.com/photos/30374652@N03/2846534450/</A></FONT></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Soula, William <BR><B>Sent:</B> W=
ednesday,=20
September 10, 2008 1:22 PM<BR><B>To:</B>=20
'webtest@lists.canoo.com'<BR><B>Subject:</B> Re: [Webtest] Webtest and=20
AJAX<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D147242118-10092008>Last attempt got filtered out for being too big.=
&nbsp;=20
I deleted some of the response below and am trying=20
again.</SPAN></FONT></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Soula, William <BR><B>Sent:</B> W=
ednesday,=20
September 10, 2008 1:14 PM<BR><B>To:</B> 'Harman Birdi';=20
'webtest@lists.canoo.com'<BR><B>Subject:</B> RE: [Webtest] Webtest and=20
AJAX<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D647004517-10092008><FONT face=3DA=
rial=20
color=3D#0000ff size=3D2>I'm kinda busy, any help here list?</FONT></SPAN><=
/DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Harman Birdi=20
[mailto:harman.birdi@gmail.com] <BR><B>Sent:</B> Wednesday, September 10, 2=
008=20
12:33 PM<BR><B>To:</B> Soula, William<BR><B>Subject:</B> Re: [Webtest] Webt=
est=20
and AJAX<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=3Dltr>
<DIV>&nbsp;</DIV>
<DIV>William - Could you please let me know in what situation you had to us=
e=20
XPath? For me, I have a input field which</DIV>
<DIV>gets a dynamic dropdown values as I type (AJAX with XMLHttpRequest and=
=20
XMLResponseText), which I can select.</DIV>
<DIV>I can see with Firebug that the following is happening, but how do I g=
et=20
the value that I want to select for the </DIV>
<DIV>input field.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The place where it shows "Elma Axtell" is where I am typing and it=20
retrieves all the possible values using Ajax<BR>dynamically. The XPath=20
expression to the left shows the possible choices. How do I narrow it to th=
e one=20
I want<BR>to pick since there are no attributes there that I can use. You c=
an=20
see that in the HTML of the Firebug window.</DIV>
<DIV>Once I select the value here, the hidden field associated with the inp=
ut=20
field gets the id of the selected value.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I would really appreciate it if you could point me to the right direct=
ion.=20
I have attached couple of snapshots of the<BR>application, so you know what=
 I am=20
referring to.&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>--Harman<BR><BR></DIV>
<DIV class=3Dgmail_quote>On Wed, Sep 10, 2008 at 10:05 AM, Soula, William <=
SPAN=20
dir=3Dltr>&lt;<A=20
href=3D"mailto:wsoula@pointserve.com">wsoula@pointserve.com</A>&gt;</SPAN>=
=20
wrote:<BR>
<BLOCKQUOTE class=3Dgmail_quote=20
style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1p=
x solid">
  <DIV>
  <DIV dir=3Dltr align=3Dleft><SPAN><FONT face=3DArial color=3D#0000ff size=
=3D2>You can=20
  use xpather to find xpaths (it is a firefox extension) although I general=
ly=20
  don't like them as they are absolute xpaths instead of relative, which is=
 more=20
  robust.&nbsp; I got most of my XPath knowledge from this site: <A=20
  href=3D"http://www.w3schools.com/xpath/default.asp"=20
  target=3D_blank>http://www.w3schools.com/xpath/default.asp</A>&nbsp; XPat=
h is=20
  very powerful and has gotten me out of a lot of=20
  situations.</FONT></SPAN></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY>=
</HTML>

--_000_93B3B6122B906D44BC7E8B8CEFB0DBBB18451F287CSGPEXCHANGEpo_--