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 / Selenium Xpath read an...
Power Automate
Unanswered

Selenium Xpath read and get value, then write to excel

(0) ShareShare
ReportReport
Posted on by 14

HI team,

 

Thank you for your wonderful support.

 

I am using for the Power automate destop Program. This program supports what we created for the new project and writes web page elements to capture, then writes to Excel. I have doubts about this project program and would like to explain the flow chart as below:.

 

1. Read excel

2. excel converts to a datatable

3. Select a particular URL link from the Excel file.

4. Open browser for that links

5. then capture value from webpage support for Xpath value (Xpath read to excel file).

6. Capture the value and write it to Excel. 

7. final, output file save to location path.

 

Thank you,

Jaya

 

 

 

I have the same question (0)
  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Learnjaya 

     

    The above flow looks fine, but I doubt selenium xpath support by power automate desktop. 

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Learnjaya Profile Picture
    14 on at

    Hi,

    Thank you for support reply,

     

    I have multiple issuer weblinks, and capture of the "Share Outstanding" Price for every issuer site. 

     

    Please see the screenshot below.

     

    Learnjaya_0-1717494871541.png

     

    Learnjaya_1-1717482446620.jpeg

    Now, you can understood of the xpath details.

     

    Thank you

    Jaya

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Learnjaya 

     

    Only the way forward is, just use JavaScript where you will pass xpath as input and it will extract the data from specific parameter and give your number as output. I tried with help of chatgpt, its working fine.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Learnjaya Profile Picture
    14 on at

    Thank you for your wonderful support,

     

    Would you please share your instructions for the Javascript where you put it in the Power flow chart? 

     

    Thanks

    Jaya

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Learnjaya 

     

    Try something like this:

     

    Deenuji_0-1717505004358.png

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • cwischnewski Profile Picture
    162 on at

    Power Automate doesn't use Xpath, instead it uses CSS Selectors plus some jQuery.  This is closely related to Xpath but different.  There isn't a 1 to 1 feature but I have found more power in the jQuery functions.  My two go-to references to translate Xpath to jQuery is:

     

    https://devhints.io/xpath  A great cheatsheet that gives a good idea of the feature you might google for.

     

    https://api.jquery.com/category/selectors/  Is good documentation for jQuery functions that I find pretty well work as documented in PAD.  One thing to note, using Chrome's dev tools you can test and verify both Xpath and CSS Selectors, but typically when jQuery functions get added to the selector, the Chrome element browser stops working.  So the testing is best done inside of PAD.

  • cwischnewski Profile Picture
    162 on at

    Just a quick example:

    Xpath:

    //td[contains(text(),'Something here')]

     

    CSS+jQuery

     td:contains('Something here')

  • Learnjaya Profile Picture
    14 on at

    Hi team,

    Great support and effect for this issue solution. I will check for your instruction steps and update for soon.

     

    Once again thanks for support.

    Jaya

  • Learnjaya Profile Picture
    14 on at

    Hi Team,

    I am trying to prepare and execute for jQuery Xapth with the issuer link process done. But I have a small doubt. I have multiple issuer links in Excel, and please see the screenshot in the previous email above. Now we are facing an issue with the program reading the Excel "URL" link open to navigate the browser and getting an error. Please see the screenshot for your reference.

     

    Learnjaya_0-1717655613472.jpeg

     

    Thanks,

    Jaya



  • eetuRobo Profile Picture
    4,583 Super User 2026 Season 2 on at

    Seems like you are referencing the CurrentItems URL column wrong. Do it like this:
     %CurrentItem['URL']%

    NOT like this: %CurrentItem%['URL']

    If you have the column outside the percent signs it will take the whole current item data row and add the ['URL'] as a string to the end.

    eetuRobo_0-1717658156734.png

     

    Like this:

    eetuRobo_1-1717658156735.png

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard