FitNesse - Click on Image

I am trying to click on an image. I circled it in red in the following screenshot:

 

 

I am trying to click the blue cross. 

I've tried the following methods:

| verify link | LINK_TEXT or LINK_TEXT[INDEX] | URL contains | URL_TEXT |

| click on link | LINK_NAME or LINK_NAME[INDEX] |

| click on button | BUTTON_NAME or BUTTON_NAME[INDEX] |

 

The code in the interface has the following general structure:

 

a!imageField(
    .
    .
    .
    label: "View",
    images: a!documentImage(
        .
        .
        .
        caption: "Add a New Route",
        link: a!dynamicLink(
            label: "+ Add New Route",
            .
            .
            .
        )
    )

)

  Discussion posts and replies are publicly visible

Parents
  • I am also facing the same issue as I have an application link that contains image with in <a><img></a> instead of any text. Click on link works fine if link<a> has text there. can you please suggest any workaround to click on the image link. I tried giving image title but it did not work for image title as well.

    Below is the HTML code for form:
    <div class="aui_FieldLayout_InputContainer GFWJSJ4DJFB" is-selectable="selectable">
    <a class="gwt-Anchor GFWJSJ4DHFB" href="#" is-selectable="unselectable">
    <img title="DOA" class="SafeImage GFWJSJ4DGFB" alt="" src="nbncotest.appiancloud.com/.../o">
    </a>
    </div>

     

    Thanks,

    Bharat

Reply
  • I am also facing the same issue as I have an application link that contains image with in <a><img></a> instead of any text. Click on link works fine if link<a> has text there. can you please suggest any workaround to click on the image link. I tried giving image title but it did not work for image title as well.

    Below is the HTML code for form:
    <div class="aui_FieldLayout_InputContainer GFWJSJ4DJFB" is-selectable="selectable">
    <a class="gwt-Anchor GFWJSJ4DHFB" href="#" is-selectable="unselectable">
    <img title="DOA" class="SafeImage GFWJSJ4DGFB" alt="" src="nbncotest.appiancloud.com/.../o">
    </a>
    </div>

     

    Thanks,

    Bharat

Children
No Data