Re: Having issues submitting drop down fields

Josep García <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <CAF2hc=q3LD2P1wPiF6FinY-1kQdda8oMEye4AWPctLT07o3Wjw@mail.gmail.com>
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.