Menu

#62 div.Element(ac) returns null

Version_1.2.0
closed
5
2012-09-15
2008-02-07
Anonymous
No

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.

Discussion

  • Jeroen van Menen

    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

     
  • Jeroen van Menen

    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

     
  • SourceForge Robot

    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).

     

Log in to post a comment.