0

I am trying to select an image on a page for an Angular Application using Robot Framework and the ExtendedSelenium2Library. When I copy the xpath, it gives me:

/html/body/div/header/nine-grid/img

However, if I try to search for this xpath using Firepath, I get no matching nodes. Here is a screen shot for the source code of the page containing the image I am trying to click on via Click Element. What can I use to select this image with the ExtendedSelenium2Library?

enter image description here

Here's my code:

*** Settings ***
Resource   ../../Resources/Common.robot

*** Variables ***
${txtCode}      model=vm.code
${btnDone}      button=Done
${btnNineDot}   xpath=/html/body/div/header/nine-grid/img[1]
${imgWebPort}   xpath=//img[contains(@src, 'icon-WebPort.svg')]

*** Keywords ***
Check Each Nine-Dot Grid Image
    Click Element   ${btnNineDot}
    Wait Until Page Contains Element  ${imgWebPort}
pgtips
  • 1,328
  • 6
  • 24
  • 43

0 Answers0