Robotic Process Automation (RPA)

 View Only
  • 1.  how to click/open the search

    Posted Fri June 10, 2022 03:20 AM
    HiI am trying to make an RPA script to search a serial number from ServiceNow, then click the result so that I can open that.I could let my Bot 'type' in the serial number there, and press enter to search. (Set Value to Field, Press return key)
    But I don't know how to make it click that 'SCTASKxxxx'..I tried to use 'Mouse Option' to move or left-click the position, but It did not click it.I tried other Mouse Action, like 'Press Left Button', but it did not seem to locate the coordinates.I also tried to change the scale of my screen display from the windows display setup and found out that the coordinate of the point is different.
    But even with the revised scale and the coordinates, it wouldn't click.


    And I tried 'Click on webpage' command using CSS or XPath... but they won't open/click the serial either.
    Can you please help? (I don't have to use the 'Mouse Option' command… any means are fine to click that SCTASKxxxx ..)




    ------------------------------
    HYANG GI JEONG
    ------------------------------


  • 2.  RE: how to click/open the search

    IBM Champion
    Posted Mon June 13, 2022 10:43 AM
    Hi Hyang,

    Usually when dealing with websites the best way to interact with them is by using Browser commands. Here it would be better to use the Click on Web Page command.

    In order to find a good selector you will have to inspect the HTML to learn more about the element you are trying to click, but here is something to help you start:
    webClick --selector "XPath" --xpath "//*[contains(text(), \'SCTASK\')]"​

    If you paste this line in Studio it will insert this command:
    This will use an XPath selector to find and click on any element that contains the text 'SCTASK'. You can customize it by changing the * to the correct type of HTML element after you inspect the page.

    Just be aware that a better selector would be using ID, names, etc, and remember that in order to use web commands you must open the browser using the Start Browser command.

    ------------------------------
    Vinicius Marques
    ------------------------------