0

enter image description hereI have attached the activity I did with RPA to automate clicking of Facebook 'like' button in child window. Even when the RPA activity click has successfully identified the element and anchor element, UiPath is not clicking the 'Like' button but it passed.

Here is the video representation of what I am saying.

which activity to choose to maximize browser

Chrome Dev tools Selector of <code>Like</code> button in Child window

Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
  • You don't need an anchor here. I think you do not have a proper selector. It's hard to tell you the correct selector as I cannot test it. – kwoxer May 07 '20 at 06:28
  • Is there a way to maximise the child browser using RPA? tried with click activity of RPA but RPA not recognising the maximise button of child browser – Carolyn Cordeiro May 07 '20 at 21:13
  • Here the best would be to use the activity called "Maximize window". If not working you need to set the "Window" property. The window is just the browser object. So somewhere you have the "Start browser" and there is another property called "Output > Browser". But I don't think it's an issue of maximizing windows in your case. You should go the way with a proper selector. – kwoxer May 08 '20 at 04:39
  • trying to send a hotkey with the selector set to that browser element,problem is click didnt worked,which one should i try? – Carolyn Cordeiro May 08 '20 at 22:30
  • Please show me images of the Browser DOM of the like button. And show the selector that you try to use. – kwoxer May 09 '20 at 05:30
  • Here is ```Like``` DOM model in child window – Carolyn Cordeiro May 09 '20 at 06:18
  • also selector i used is "Image verification" – Carolyn Cordeiro May 09 '20 at 06:23
  • Don't use Image verification. You have a proper selector. Switch back to usual DOM selector. Can you try use the Ui Explorer? Select the like button and show me your selector you got. – kwoxer May 09 '20 at 08:56
  • Also what is your error message. Can you add that to the post and not as image. – kwoxer May 09 '20 at 08:56
  • i am using studio X ,i think i should change the studio which you use,let me know which one you use? – Carolyn Cordeiro May 10 '20 at 03:11
  • Hope my solution works for you. – kwoxer May 10 '20 at 06:30

1 Answers1

1

It does not matter which version you use. But you better switch back to the Community version 20. In that version your process look a bit like mine. I created on account on your like4like page and tested your case.

Process: UiPath Process

That process clicks any Like button on the focused tab. For me that worked on several tests.

The Click Like Button selector is:

"<html app='firefox.exe' idx='25' /><webctrl aaname='Like' tag='A' colName='Like' innertext='Like' rowName='Like' />"

You do not have to use the Attach Browser. But I would recommend that if you use more than one Click activity.

You can find Studio and StudioX on the same page. It's a bit confusing as StudioX is currently just available on the non-stable release:

stuido/studiox

kwoxer
  • 3,734
  • 4
  • 40
  • 70
  • How to download UIPath studio community and not Studio Xcurrently in https://cloud.uipath.com/tuhaajxmfsmc/portal_/home is only see option of downloading UI path Community version 20 . ,In dont see options like Sequence,Attach browser, – Carolyn Cordeiro May 11 '20 at 04:28
  • Just added an image that makes clear is what. Hope that helps. And better always use Stable releases instead of preview. – kwoxer May 11 '20 at 06:09
  • You're welcome. Come back here if you have additional questions. – kwoxer May 12 '20 at 04:26
  • please can you look at this https://stackoverflow.com/questions/62011341/how-to-close-the-child-tab-using-close-tab-activity-in-uipath – Carolyn Cordeiro May 25 '20 at 23:56