Need help - Locator not found

I am trying to click the “Search Permitting” link towards the bottom of the page. I have tried using id and full xpath but the robot says the locator is not found. Can anyone help me out? This looks like a Microsoft SPA webapp.

Open Available Browser 
    Wait Until Element Is Visible    id:ctl00_PlaceHolderMain_TabDataList_TabsDataList_ctl00_LinksDataList_ctl00_LinkItemUrl    15s
    Click Link      id:ctl00_PlaceHolderMain_TabDataList_TabsDataList_ctl00_LinksDataList_ctl00_LinkItemUrl 

Also tried: xpath:/html/body/form/div[3]/div/div[7]/div[1]/table/tbody/tr/td[1]/div/div[2]/div/table/tbody/tr[1]/td[1]/span/span/a

Looked at page source and seems content is inside iframe. This should help solve this.
So select frame, click link, unselect.


Hi -’s answer about the iframe navigation is to the point!

I don’t know this service, so the following ideas may not work in this site at all! I am just thinking aloud :grinning_face_with_smiling_eyes:

I checked the page source and found this:

  • If you can see this text, your browser does not support iframes. /ACA/Welcome.aspx View the content of this inline frame within your browser.

Next, I tried to open the browser to that page, and then click the link:

    Open Available Browser
    Click Link  id:ctl00_PlaceHolderMain_TabDataList_TabsDataList_ctl00_LinksDataList_ctl00_LinkItemUrl

It seems to go somewhere - I am not sure if it is the correct place, but now the URL is

Maybe you can try opening the browser directly into that page? It would remove the need for clicking at all:

    Open Available Browser
1 Like

@linkraivo Thanks for the tips on iframe.

@Teppo Thanks, that link you suggested worked. You taught me to check the source next time. Thanks again!

Hi, @luckywolf19!

I went in and updated the iframe article linked by @linkraivo to show how to do the same iframe logic with the Playwright-based Robot Framework Browser library.

Here’s the beef (the article contains a link to how to install the library, etc.):

*** Settings ***
Documentation     Working with forms inside and outside of an iframe.
...               Playwright-based Robot Framework Browser library.
Library           Browser

*** Tasks ***
Input text in form field inside an iframe, then outside the iframe
    New Page
    Type Text    css=iframe >>> input[name="cardnumber"]    4242424242424242
    Type Text    css=input[name="name"]    Robot

// Jani

1 Like