Feature Requests item #1515294, was opened at 2006-07-01 07:23
Message generated for change (Settings changed) made by jevonwright
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1515294&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: 3
Private: No
Submitted By: Jeffrey W. Badorek (ytsedt)
>Assigned to: Jevon Wright (jevonwright)
Summary: Bring back getElement*BeforeLabel methods.
Initial Comment:
Any chance of bringing back getElementNameBeforeLabel
and getElementValueBeforeLabel? I realize it was never
implemented, but I think I have a solution (see
attached file), at least for htmlunit.
----------------------------------------------------------------------
Comment By: Jevon Wright (jevonwright)
Date: 2008-11-18 16:09
Message:
Hi, in the latest SVN trunk you can now apply element XPaths to get the
preceding element:
<input value="text field" />
<label id="my_label">label</label>
IElement element = getElementById("my_label");
IElement preceding = element.getElement("preceding::input");;
assertEquals(element.getAttribute("value", "text field");
----------------------------------------------------------------------
Comment By: Julien HENRY (henryju)
Date: 2006-07-01 20:20
Message:
Logged In: YES
user_id=1235926
If you find a way using XPath to realize these methods, it
should work for Selenium too.
But I'm not sure it's a good idea to encourage this practice.
However, if you manage to make these methods working for
both Selenium and HtmlUnit, I will add it to 2.x
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1515294&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