HtmlAnchor in Iframe

2 posts, 0 answers
  1. Milton
    Milton avatar
    4 posts
    Member since:
    May 2015

    Posted 13 May 2015 Link to this post

    <iframe id="casesFrame" width="99%" height="418" frameborder="0" src="../cases/main_init" name="casesFrame" style="">
             <html class=" ext-strict x-viewport">
                <body id="ext-gen3" class=" ext-gecko ext-gecko3 x-border-layout-ct">
                   <ul id="ext-gen37" class="x-tree-root-ct x-tree-arrows">
                      <li class="x-tree-node">
                         <a class="x-tree-node-anchor" tabindex="1" href="" hidefocus="on">
                            <span unselectable="on">New case</span>



    I have the following structure in my page, but I get error while performing an event "Click" link "New Case".

    I am using the code following in "Test Studio":

    Browser casesFrame = Manager.ActiveBrowser.Frames.ById ("casesFrame");
    HtmlAnchor NewCase = casesFrame.Find.ByExpression <HtmlAnchor> ("InnerText = ~ New case", "tagname = a");
    Assert.IsNotNull (NewCase);
    newCase.Click (); //Does not perform the event ​


    Help Please.

  2. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 18 May 2015 Link to this post

    Hello Milton,

    This is a duplicate of this forum post.

    Let's continue the discussion there.

    Thank you!

    Boyan Boev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top