web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can't edit selector wi...
Power Automate
Unanswered

Can't edit selector without getting errors

(2) ShareShare
ReportReport
Posted on by 5

Hello, I've been trying Power Automate Desktop and I still can't edit the selector of an element to make it dynamic, let me explain:

 

(Sorry for the lack of a serious webpage, it's just for practice)

 

The webpage has a list o links, I've mapped one of them and the selector starts like this:

 

List of links:

Epyros_0-1609249191953.png

I mapped the first link and got this selector by default:

Epyros_1-1609249254997.png

The only thing I've been able to change is the ordinal on the 7th item (This way I can change the ordinal and click another link, but I want to reference them by the InnerText):

Epyros_2-1609249321227.png

Here I just added one element on the last item, the innertext (As far as I understand, this should work as its the same item and the text should match with the element):

Epyros_3-1609249439421.png

Sorry for the portuguese but here's the error:

Epyros_4-1609249523668.png

(Robin.Core.ActionException: Click link on web page failed. ---> System.NullReferenceException: Referência de objeto não definida para uma instância de um objeto.
em Robin.Modules.WebAutomation.Actions.WebAutomationRuntime.ClickLinkOnWebPage(WebBrowserInstanceVariant webBrowserInstanceVariant, TextVariant cssSelectorForLinkElement, Boolean waitForPageToLoad, TextVariant dialogButtonToPress, WebPageCourseOfActionIfDialogAppearsEnum courseOfActionIfDialogAppears)
em Robin.Modules.WebAutomation.Actions.WebAutomationActions.ClickLinkOnWebPage(Variant webBrowserInstance, Variant cssSelectorOfElementToClick, Variant dialogButtonToPress, Boolean waitForPageToLoad, Int32 courseOfActionIfDialogAppears)
--- Fim do rastreamento de pilha de exceções internas ---
em Robin.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
em Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement))

 

Have any idea of how to solve this?? So far I've come up with a loop that iterates the ordinal of the element, reads the inner text and compares until it gets the right element, but I've read in these forums that it should be possible to map it more precisely.

 

Sorry for my english, and thank you in advance

 

HNY

 

 

 

I have the same question (0)
  • JosiasDeleu Profile Picture
    24 on at

    I am facing the exact same problem.

    As soon as I edit the selector, it stops working.

    It does not let me use the InnerText attribute.

     

    This is a key feature so that we can continue using PA.

    I have already done another post, reporting this problem, but without a solution so far.

  • Nader_Badawy Profile Picture
    2 on at

    you can use a custom selector:

    a:contains("WhateverInnerTextYouNeed").

    you can also use a variable instead of literal string.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard