RootElement isn't working correctly for me. Check out the two lines of code below, I would think they should return the same data .. but they do not.
// Does not return the element I am looking for (although I know its there)
var containerElements = AutomationHelpers.FindAllHtmlElementsByClass(_adapter.Page.RootElement, RelatedItemContainerWrapperId,
"div");
// This works, returns the element that the call above fails to find.
var containerElements = AutomationHelpers.FindAllHtmlElementsByClass(_adapter.Page.Elements.Find("html", 0),RelatedItemContainerWrapperId,
"div");
Michael Cowan
Aisle7
QA Manager (QA Lead)
michael.cowan@healthnotes.com
Yeah, this is a bug on RootElement. Sorry that you had to struggle with it. For next releases I'll make sure to put a list of "known issues", which are active bugs that we haven't had the time to look into.
mcowan
Member
8 Points
42 Posts
Is HtmlPage.RootElement Cached? I am getting weird behavior.
Apr 02, 2009 12:07 AM|LINK
RootElement isn't working correctly for me. Check out the two lines of code below, I would think they should return the same data .. but they do not.
// Does not return the element I am looking for (although I know its there)
var containerElements = AutomationHelpers.FindAllHtmlElementsByClass(_adapter.Page.RootElement, RelatedItemContainerWrapperId, "div");
// This works, returns the element that the call above fails to find.
var containerElements = AutomationHelpers.FindAllHtmlElementsByClass(_adapter.Page.Elements.Find("html", 0),RelatedItemContainerWrapperId, "div");
Aisle7
QA Manager (QA Lead)
michael.cowan@healthnotes.com
farmas
Participant
1164 Points
259 Posts
Microsoft
Re: Is HtmlPage.RootElement Cached? I am getting weird behavior.
Apr 05, 2009 11:58 PM|LINK
Yeah, this is a bug on RootElement. Sorry that you had to struggle with it. For next releases I'll make sure to put a list of "known issues", which are active bugs that we haven't had the time to look into.
- Federico
mcowan
Member
8 Points
42 Posts
Re: Is HtmlPage.RootElement Cached? I am getting weird behavior.
Apr 06, 2009 04:01 AM|LINK
Hey , half the fun is figuring stuff out :)
But thanks, a known issues list would be cool.
Aisle7
QA Manager (QA Lead)
michael.cowan@healthnotes.com