Bugs item #1565686, was opened at 2006-09-26 12:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1565686&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Release 1.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Veenay Dodia (veenay_dodia)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTML page with several same form name, unable to find form

Initial Comment:
I am trying to test an html page with several forms, a 
couple of which have a select with the same name. I 
want to invoke a select on one of them.

something like..

<html>
<body>
<form name="mainCourse">
...
<select name="sauce">
        <option>mustard</option>
        <option>horseradish</option>
</select>
</form>

<form name="desert">
...
<select name="sauce">
        <option>chocolate</option>
        <option>strawberry</option>
</select>
</form>
</body>
</html>


I am calling 

Webtester tester = ....
tester.setWorkingForm("desert");   
//to set the form I want to check the select on, and 
then calling tester.selectOption("sauce", "chocolate");

Stepping through in the debugger I found that within 
HtmlUnitDialog#hasFormSelected(String selectName); the 
method getFormWithSelect(String) is called. This 
resets the working form to be the first one with a 
select of that name on it. subsequent code fails as it 
is now dealing with the wrong select.

is there a way to interact with a specific form 
without the working form being reset?


TIA

Veenay

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1565686&group_id=61302

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to