Hi
I am currently working on a Poc for the testing suite and testing framework. I had a question about how to query the elements.
I want to query elements using a jquery style selector eg find me elements which have a class of x and are within elements of type p I tried to do this using the following :
This returned nothing which is what I expected.
To find these kinds of elements at the moment I have to do something like the following:
Do you have any plans to support jquery style selection for elements any time in the future?
Regards
Joe
I am currently working on a Poc for the testing suite and testing framework. I had a question about how to query the elements.
I want to query elements using a jquery style selector eg find me elements which have a class of x and are within elements of type p I tried to do this using the following :
HtmlControl cc =
this
.TestFramework.Find.AllControls<HtmlControl>().Where(c => c.CssClass ==
".x, p"
).FirstOrDefault();
To find these kinds of elements at the moment I have to do something like the following:
Element element =
this
.TestFramework.Find.AllControls<HtmlDiv>().Where(c => c.CssClass ==
"formColWidth01"
).First().ChildNodes[0].ChildNodes[0];
Do you have any plans to support jquery style selection for elements any time in the future?
Regards
Joe