Hi,
is it a parsing problem (the link is *not* within a script tag, it is
probably generated from this script)? Or may it be a timing problem?
Can you look at the state of the page before you try to click the link?
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
Le 30/08/2010 11:13, Ian Phillips a écrit :
Hi.
No frames but the link is found between script tags:
<div style="float: right; width: 50%;">
<div id="subscriberTable"></div>
<script type="text/javascript">
var myContractColumnDefs = {action:"", identifier:"Identifier",
name:"name"};
var myContractData = [{"name":"CSS-26Aug10_135659FCtr CSS-26Aug10_135659LCtr","identifier":"<a
href='jfn?reloadContractContext=false&contractIdToActivate=L4%3A5449&mfunc=1312&ctxaccountId=L4%3A1851&cfunc=26&ctx=L&octx=d5.163&oid=L4%3A1727&ctxnavCtx=A&jfnRC=3' title='Go to Subscriber
Dashboard'>185644428455</a>","accountReference":"2335","accountName":"CSS-26Aug10_135659FAcct CSS-26Aug10_135659LAcct","serviceCategory":"Cable","primaryOfferName":"CSS_PQA_generic_postpaid_cable-USD_PO1","action":"<img
src='include/img/fwk/control_repeat.png' class=\"contextIcon\" title=\"This action is not available.\"/><a
href='jfn?reloadContractContext=false&contractIdToActivate=L4%3A5449&mfunc=1312&ctxaccountId=L4%3A1851&cfunc=26&ctx=L&octx=d5.163&oid=L4%3A1727&ctxnavCtx=A&jfnRC=3' title='Go to Subscriber Dashboard' class='dashRow'><img src='include/img/fwk/page_go.png'
class=\"contextIcon\"/></a>"}];
subscriberTab = new YUITable("subscriberTable",
myContractColumnDefs, myContractData);
</script>
</div>
We never see the open navigation panel in the webtest reports. The
panel is openned by clicking another link to see the link we want. I
have already the following set:
<config ... *saveresponse="true"*.../> already but don't see the open panel.
Thanks
Ian
On 27 August 2010 19:07, Guillaume Richard <[email protected]
<mailto:[email protected]>> wrote:
Hi,
what does your web application pages look like ? Is there some
frames, popups,... ? Check also the browser in <config.../> element,
sometimes the behaviour of webapps depends on it.
You could test what your webtest process 'sees' by putting a
<config ... *saveresponse="true"*.../>
you could then check what your web pages 'really' look like to your
Webtest browser.
Cheers,
Guillaume
2010/8/27 Ian Phillips <[email protected]
<mailto:[email protected]>>
Hi.
Our dev team have just introduced a naviagation panel in the
application we are testing. Unfortunately for us (the testers)
this is the main way of navigating around the application and
webtest is unable (or I have not found the right way yet) to
click on some of the links in this panel.
This is the code for the link:
<a
href="jfn?reloadContractContext=false&contractIdToActivate=L4%3A5449&mfunc=1312&ctxaccountId=L4%3A1851&cfunc=26&ctx=L&octx=d5.163&oid=L4%3A1727&ctxnavCtx=A&jfnRC=3"
title="#PP_Go to Subscriber Dashboard_PP#">185644428455</a>
When I use the recorder I get::
<clickLink label="185644428455"/>
But this does not work and fails with link not found. I have then
tried xpath and href to try and click this link but no luck. I have also tried
clickElement and no success.
Any ideas what else I can try? I installed the selenium ide, to get
the xpaths, and it does not have any problem clicking the link??
Thanks
Ian
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest