div.Element(ac) returns null
Brought to you by:
jvmenen
In this sample code object el is null despite div has such element (and it is unique):
Frame frame = ie.Frame("xxx");
Form form = frame.Form("yyyy");
Div div = form.Div("jjjj");
AttributeConstraint ac = new AttributeConstraint("class", new Regex("qqqqqqq"));
Element el = div.Element(ac);
However there with a little workaround you can access that object doing an iteration between div.Elements collection.
Logged In: YES
user_id=799177
Originator: NO
Hi,
I have tried to reproduce this problem, but I don't get a return value of null. Is it possible you attach an example page and some unit test code to this tracker issue that reproduces this problem.
Thanks in advance, Jeroen
Logged In: YES
user_id=799177
Originator: NO
Hi,
I have tried to reproduce this problem, but I don't get a return value of null. Is it possible you attach an example page and some unit test code to this tracker issue that reproduces this problem.
Thanks in advance, Jeroen
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).