Skip to main content
Navigator | Tier 3
May 29, 2023
Question

Bot is not clicking as coded

  • May 29, 2023
  • 8 replies
  • 234 views

Here, I have to click on Profile button and I’ve captured it and coded. But while running the bot, it is clicking on Message .

Can someone help me out.

    8 replies

    Shoeb Shk
    Navigator | Tier 3
    May 29, 2023

    Hello,

    Please share the properties selected.

    I suggest you to select only the domx path, check for any other unique properties and make the selection accordingly.

     

    Happy Automation,

    Shoeb Shaikh
    Navigator | Tier 3
    May 29, 2023

    Hello,

    Please share the properties selected.

    I suggest you to select only the domx path, check for any other unique properties and make the selection accordingly.

     

    Happy Automation,

    I did so and also specified the inner text too (as PROFILE). 

    Fresher
    Shoeb Shk
    Navigator | Tier 3
    May 29, 2023

    Try with the inner text only.

    If still not working share the properties screen shot.

     

    Shoeb Shaikh
    Navigator | Tier 3
    May 29, 2023

    Try with the inner text only.

    If still not working share the properties screen shot.

     

    Can’t do with inner text only because, it is an iterating process where Domx path keep changing. I have used a iterator in Domx path.

     

    And also, I have tried capturing the following image beside profile to click on it. But not working. Clicking on Message only. 

     

    Fresher
    Shoeb Shk
    Navigator | Tier 3
    May 29, 2023

    Share the properties panel screen shot

    Shoeb Shaikh
    Navigator | Tier 3
    May 29, 2023

     

    Fresher
    Raul Jaimes
    Navigator | Tier 3
    May 30, 2023

    @SaiRahul02 

    Try to use Action Click instead of Left Click.

     

    Regards.

    Cadet | Tier 2
    May 30, 2023

    Please try to create custom domx path using common properties(like text, class) of all the profile buttons.
    Along with this you can add a occurrence counter to common path.

    You can create a custom path like (//div[@id='root']//button[text()=”Profile”])[##] depending on the actual values in HTML content. (## will be number of button)