[Webtest] Having issues submitting drop down fields

naz a naz a <nazj81@gmail.com>
Fri, 24 Feb 2012 14:01:40 -0800


--bcaec51b1b3bcdb81804b9bce7e6
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi Josep,

The javascript that gets executed when an option is selected in a browser,
doesn=92t get executed on the webtest response when webtest selects the fie=
ld.


Here are the steps:

<setSelectField description=3D"Enter Oppty Stage"

    name=3D"opp11"

    text=3D"Decision Made/Verbal Approval"/>


The html from the page:


<select id=3D"opp11" name=3D"opp11"
onchange=3D"editPage.opp12.value=3Dpl.oppo.pct[(editPage.opp11.options[edit=
Page.opp11.selectedIndex]).value];
modifyForecastCategorySelect();setForecastCategory();"
tabindex=3D"20"><option value=3D"">--None--</option><option
value=3D"Prospecting">Prospecting</option><option value=3D"Current
Situation">Current Situation</option><option
value=3D"Value/Benefit">Value/Benefit</option><option value=3D"Decision
Made/Verbal Approval">Decision Made/Verbal Approval</option><option
value=3D"Closed Won">Closed Won</option><option value=3D"Closed Lost">Close=
d
Lost</option><option value=3D"No Decision">No
Decision</option></select></span><script>new
picklist('opp11','23',null,['',''],' id=3D\"opp11\" name=3D\"opp11\"
onchange=3D\"editPage.opp12.value=3Dpl.oppo.pct[(editPage.opp11.options[edi=
tPage.opp11.selectedIndex]).value];
modifyForecastCategorySelect();setForecastCategory();\"
tabindex=3D\"20\"',false,true);</script>


Thank You,
Naz


On Thu, Feb 23, 2012 at 6:26 AM, Josep Garc=EDa <jgarcia@isigma.es> wrote:

> Can you send your webtest steps?
>
>
>
> 2012/2/23 naz a <nazj81@gmail.com>
>
>> Hi,
>>
>> I am trying to automate a form, but certain drop down fields in the form
>> only are click-able once lets say drop down field1 has been filled out,
>> then drop down field2 is available.
>> I can't trigger drop down field2 from being recognized because when I
>> look at the automation results file,
>> drop down field1 has been reset and it looks like its when I submit the
>> entire form. A page refresh occurs and I am losing data, so drop down
>> field1 is not being saved.
>>
>> I have tried to rearrange the test to enter drop down fields first that
>> trigger the page refresh,
>> and all the form fields after - so the drop down fields I need to trigge=
r
>> field2 are saved, but drop down field2 is not click-able and my form err=
ors
>> out saying "please enter all the required fields".
>> So I need to know how to get drop down field2 to be click-able after a
>> page refresh.
>> I have tried the following and not of it triggers drop down field2:
>>
>>
>> <forceInputFieldAttribute description=3D"Enable field2" htmlId=3D"2a"
>> attributeName=3D"disabled" attributeValue=3D""/>
>>
>> <setSelectField description=3D"Enable field2" htmlId=3D"2a" text=3D"Othe=
r"/>
>>
>> <forceInputFieldAttribute description=3D"Enable field2" htmlId=3D"2a"
>> attributeName=3D"disabled" attributeValue=3D""/>
>>
>> <setSelectField description=3D"Enable field2" htmlId=3D"2a" text=3D"Othe=
r"/>
>>
>> <clickElement xpath=3D"//option[@value=3D'Other']"/>
>>
>> Please send suggestions.
>>
>> Thank You in advance.
>> Naz
>>
>
>

--bcaec51b1b3bcdb81804b9bce7e6
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi Josep,<br><br>

<p style class=3D"MsoNormal"><span style=3D"font-size:11pt;font-family:&quo=
t;Calibri&quot;,&quot;sans-serif&quot;">The javascript that gets executed w=
hen an option is selected in
a browser, doesn=92t get executed on the webtest response when webtest sele=
cts
the field.</span></p>

<br><br>Here are the steps:<br><br>

<p class=3D"MsoNormal"><span style=3D"font-size:11pt;font-family:&quot;Cour=
ier New&quot;;color:teal">&lt;</span><span style=3D"font-size:11pt;font-fam=
ily:&quot;Courier New&quot;;color:rgb(63,127,127)">setSelectField </span><s=
pan style=3D"font-size:11pt;font-family:&quot;Courier New&quot;;color:rgb(1=
27,0,127)">description</span><span style=3D"font-size:11pt;font-family:&quo=
t;Courier New&quot;">=3D</span><span style=3D"font-size:11pt;font-family:&q=
uot;Courier New&quot;;color:rgb(42,0,255)">&quot;Enter
Oppty Stage&quot; </span><span style=3D"font-size:11pt;font-family:&quot;Co=
urier New&quot;"></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11pt;font-family:&quot;Cour=
ier New&quot;;color:rgb(42,0,255)">=A0=A0=A0
</span><span style=3D"font-size:11pt;font-family:&quot;Courier New&quot;;co=
lor:rgb(127,0,127)">name</span><span style=3D"font-size:11pt;font-family:&q=
uot;Courier New&quot;">=3D</span><span style=3D"font-size:11pt;font-family:=
&quot;Courier New&quot;;color:rgb(42,0,255)">&quot;opp11&quot;
</span><span style=3D"font-size:11pt;font-family:&quot;Courier New&quot;"><=
/span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11pt;font-family:&quot;Cour=
ier New&quot;;color:rgb(42,0,255)">=A0=A0=A0
</span><span style=3D"font-size:11pt;font-family:&quot;Courier New&quot;;co=
lor:rgb(127,0,127)">text</span><span style=3D"font-size:11pt;font-family:&q=
uot;Courier New&quot;">=3D</span><span style=3D"font-size:11pt;font-family:=
&quot;Courier New&quot;;color:rgb(42,0,255)">&quot;Decision
Made/Verbal Approval&quot;</span><span style=3D"font-size:11pt;font-family:=
&quot;Courier New&quot;;color:teal">/&gt;</span></p><p class=3D"MsoNormal">=
<br></p><p class=3D"MsoNormal">The html from the page:</p><p class=3D"MsoNo=
rmal">

<br><span style=3D"font-size:11pt;font-family:&quot;Courier New&quot;;color=
:teal"></span><span style=3D"font-size:11pt;font-family:&quot;Calibri&quot;=
,&quot;sans-serif&quot;;color:rgb(31,73,125)"></span></p>



<p class=3D"MsoNormal"><span style=3D"font-size:11pt;font-family:&quot;Cali=
bri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)">&lt;select id=3D&quo=
t;opp11&quot; name=3D&quot;opp11&quot;
onchange=3D&quot;editPage.opp12.value=3Dpl.oppo.pct[(editPage.opp11.options=
[editPage.opp11.selectedIndex]).value]; modifyForecastCategorySelect();setF=
orecastCategory();&quot;
tabindex=3D&quot;20&quot;&gt;&lt;option
value=3D&quot;&quot;&gt;--None--&lt;/option&gt;&lt;option value=3D&quot;Pro=
specting&quot;&gt;Prospecting&lt;/option&gt;&lt;option
value=3D&quot;Current Situation&quot;&gt;Current
Situation&lt;/option&gt;&lt;option
value=3D&quot;Value/Benefit&quot;&gt;Value/Benefit&lt;/option&gt;&lt;option
value=3D&quot;Decision Made/Verbal Approval&quot;&gt;Decision Made/Verbal
Approval&lt;/option&gt;&lt;option value=3D&quot;Closed Won&quot;&gt;Closed
Won&lt;/option&gt;&lt;option value=3D&quot;Closed Lost&quot;&gt;Closed
Lost&lt;/option&gt;&lt;option value=3D&quot;No Decision&quot;&gt;No
Decision&lt;/option&gt;&lt;/select&gt;&lt;/span&gt;&lt;script&gt;new
picklist(&#39;opp11&#39;,&#39;23&#39;,null,[&#39;&#39;,&#39;&#39;],&#39; id=
=3D\&quot;opp11\&quot;
name=3D\&quot;opp11\&quot;
onchange=3D\&quot;editPage.opp12.value=3Dpl.oppo.pct[(editPage.opp11.option=
s[editPage.opp11.selectedIndex]).value]; modifyForecastCategorySelect();set=
ForecastCategory();\&quot;
tabindex=3D\&quot;20\&quot;&#39;,false,true);&lt;/script&gt;</span></p>

<br><br>Thank You,<br>Naz<div class=3D"yj6qo ajU"><div id=3D":13t" class=3D=
"ajR" tabindex=3D"0"><img class=3D"ajT" src=3D"images/cleardot.gif"></div><=
/div><br><br><div class=3D"gmail_quote">On Thu, Feb 23, 2012 at 6:26 AM, Jo=
sep Garc=EDa <span dir=3D"ltr">&lt;<a href=3D"mailto:jgarcia@isigma.es">jga=
rcia@isigma.es</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex">Can you send your webtest=
 steps?<div class=3D"HOEnZb"><div class=3D"h5"><br><br><br><div class=3D"gm=
ail_quote">
2012/2/23 naz a <span dir=3D"ltr">&lt;<a href=3D"mailto:nazj81@gmail.com" t=
arget=3D"_blank">nazj81@gmail.com</a>&gt;</span><br><blockquote class=3D"gm=
ail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex">

Hi,<br><br>I am trying to automate a form, but certain drop down fields in =
the form only are click-able once lets say drop down field1 has been filled=
 out, then drop down field2 is available.<br>I can&#39;t trigger drop down =
field2 from being recognized because when I look at the automation results =
file,<br>


drop down field1 has been reset and it looks like its when I submit the ent=
ire form. A page refresh occurs and I am losing data, so drop down field1 i=
s not being saved.<br><br>I have tried to rearrange the test to enter drop =
down fields first that trigger the page refresh,<br>


and all the form fields after - so the drop down fields I need to trigger f=
ield2 are saved, but drop down field2 is not click-able and my form errors =
out saying &quot;please enter all the required fields&quot;.<br>So I need t=
o know how to get drop down field2 to be click-able after a page refresh.<b=
r>


I have tried the following and not of it triggers drop down field2:<br><br>=
<br>&lt;forceInputFieldAttribute description=3D&quot;Enable field2&quot; ht=
mlId=3D&quot;2a&quot; attributeName=3D&quot;disabled&quot; attributeValue=
=3D&quot;&quot;/&gt;<br>


<br>&lt;setSelectField description=3D&quot;Enable field2&quot; htmlId=3D&qu=
ot;2a&quot; text=3D&quot;Other&quot;/&gt;<br><br>&lt;forceInputFieldAttribu=
te description=3D&quot;Enable field2&quot; htmlId=3D&quot;2a&quot; attribut=
eName=3D&quot;disabled&quot; attributeValue=3D&quot;&quot;/&gt;<br>


<br>&lt;setSelectField description=3D&quot;Enable field2&quot; htmlId=3D&qu=
ot;2a&quot; text=3D&quot;Other&quot;/&gt; <br><br>&lt;clickElement xpath=3D=
&quot;//option[@value=3D&#39;Other&#39;]&quot;/&gt;<br><br>Please send sugg=
estions.<br>


<br>Thank You in advance.<span><font color=3D"#888888"><br>Naz<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br>

--bcaec51b1b3bcdb81804b9bce7e6--