RE: [Httpunit-develop] RE: TypeError: [object Link] is not a function
Brought to you by:
russgold
From: <Geo...@we...> - 2005-08-26 19:00:15
|
No, there is no link. There's a named anchor with a javascript function attached, but no link. See http://www.w3.org/TR/REC-html40/struct/links.html#idx-anchor-1 for explanation. I would recommend changing your list subscription to individual emails. It's not a high-volume list. > -----Original Message----- > From: htt...@li...=20 > [mailto:htt...@li...] On=20 > Behalf Of Scott Morgan > Sent: Friday, August 26, 2005 12:18 PM > To: htt...@li... > Subject: [Httpunit-develop] RE: TypeError: [object Link] is=20 > not a function >=20 >=20 > Hi <George@we...> >=20 > I do understand your point, that http unit isn't finding a=20 > link on the page, however there is a link on the page. You=20 > can check it out yourself. >=20 > http://ploodoh.adligo.com/index2.html >=20 > I am willing to dig around in the source and try to fix these=20 > issues, however I could use some info about a good spot to=20 > start looking. >=20 > Also, I have a source forge account and I would like to=20 > respond to these messages so that they show up as a thread. =20 > How do you do this? >=20 > I haven't been able to navigate to the list after login in. >=20 > I have this list sending me only the 1 a day batch, so=20 > responding to email wouldn't work for me. >=20 > Thanks, > Scott >=20 > > After the line > > > > WebLink [] links =3D webResponse.getLinks(); > > > > you might want to insert > > > > assertTrue("Expect some links", links.length > 0); >=20 > > -----Original Message----- > > From: httpunit-develop-admin@li... > > [mailto:httpunit-develop-admin@li...] On > > Behalf Of Scott Morgan > > Sent: Wednesday, August 24, 2005 11:50 PM > > To: httpunit-develop@li... > > Subject: [Httpunit-develop] TypeError: [object Link] is=20 > not a > function. > > > I have been working on a issue=20 > with javascript where I call a > javascript function that=20 > does window.open('lots o params'). > I keep getting a error=20 > that it can't find my function. So I > decided to create a=20 > test case and in the process found > another bug (or user=20 > error). > > Anyway here is my test case. > > > > WebConversation conv =3D new WebConversation(); > > String url =3D "http://ploodoh.adligo.com/index2.html"; > > WebRequest webRequest =3D new GetMethodWebRequest(url); > > WebResponse webResponse =3D conv.getResponse(webRequest); > > System.out.println(webResponse.getText()); > > WebLink [] links =3D webResponse.getLinks(); > > WebResponse newResponce =3D links[0].click(); > > System.out.println(newResponce.getText()); > > > > Please Help TIA, > > -- > > Scott Morgan > > Ph: 773-758-8735 > > Fax: 773-632-0568 > > http://www.adligo.com >=20 >=20 > --=20 > Scott Morgan > Ph: 773-758-8735 > Fax: 773-632-0568 > http://www.adligo.com >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference &=20 > EXPO September 19-22, 2005 * San Francisco, CA * Development=20 > Lifecycle Practices Agile & Plan-Driven Development *=20 > Managing Projects & Teams * Testing & QA Security * Process=20 > Improvement & Measurement * http://www.sqe.com/bsce5sf=20 > _______________________________________________ > Httpunit-develop mailing list Htt...@li... > https://lists.sourceforge.net/lists/listinfo/httpunit-develop >=20 |