Re: Having issues submitting drop down fields

naz a <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <CALYSW6LPJ1tJ2D=Z1fO1WsdEVCr4swzVEYtOOVJBFhds4gg1FA@mail.gmail.com>
Hi Josep,

The javascript that gets executed when an option is selected in a browser,
doesn’t get executed on the webtest response when webtest selects the field.


Here are the steps:

<setSelectField description="Enter Oppty Stage"

    name="opp11"

    text="Decision Made/Verbal Approval"/>


The html from the page:


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


Thank You,
Naz


On Thu, Feb 23, 2012 at 6:26 AM, Josep García <[email protected]> wrote:

> Can you send your webtest steps?
>
>
>
> 2012/2/23 naz a <[email protected]>
>
>> 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 trigger
>> field2 are saved, but drop down field2 is not click-able and my form errors
>> 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="Enable field2" htmlId="2a"
>> attributeName="disabled" attributeValue=""/>
>>
>> <setSelectField description="Enable field2" htmlId="2a" text="Other"/>
>>
>> <forceInputFieldAttribute description="Enable field2" htmlId="2a"
>> attributeName="disabled" attributeValue=""/>
>>
>> <setSelectField description="Enable field2" htmlId="2a" text="Other"/>
>>
>> <clickElement xpath="//option[@value='Other']"/>
>>
>> Please send suggestions.
>>
>> Thank You in advance.
>> Naz
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.