Feature Requests item #1785736, was opened at 2007-09-01 04:54
Message generated for change (Settings changed) made by jevonwright
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1785736&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: Core API
>Group: Release 2.1
>Status: Closed
Priority: 7
Private: No
Submitted By: Francisco (chicaogarcia)
Assigned to: Jevon Wright (jevonwright)
Summary: getTextFieldValue(), getSelectOptionsValues()
Initial Comment:
WebTester has no method to get select option values and text field values,
instead i need to use getDialog().getTextFieldValue and
getDialog().getSelectOptionsValues, but getDialog() is deprecated.
This feature seems not be too hard to implement.Can i implement it?
----------------------------------------------------------------------
>Comment By: Jevon Wright (jevonwright)
Date: 2008-10-29 14:07
Message:
You can get a lot of this functionality through the new IElement interface
in SVN trunk:
IElement element = getElementByXPath("//input[name='foo']");
System.out.println(element.getAttribute("value"));
List<IElement> options = selectElement.getElements("option");
for (IElement option : options) {
System.out.println(option.getText());
}
Also see getFormElementValue(String).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1785736&group_id=61302
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development