PSM web session Unable to click on button

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

PSM web session Unable to click on button

L1 Bithead

We tried to create different web connectors and this one seems very difficult to understand. We can search elements by name, id, class or even xpath. We don't see any way to click on this one except xpath.

I tried various methods i.e. using xpath and full xpath. Also there are 4 html tags here a parent 'g' tag and then 3 child tag. So I tried both xpath and full xpath of all 4 elements and can't make it work.

 

Any clues please?

 

<g transform="translate(752, 364)"> <rect x="1" y="1" width="404" height="64" stroke-width="2" stroke="#4f4e4e" rx="8" ry="8" opacity="0.73" fill="#262626" id="loginButton"></rect> <text text-anchor="middle" x="202" y="40" fill="#e5e5ea" style="font-size: 16px; font-family: Roboto; font-stretch: normal; font-style: normal; line-height: normal; letter-spacing: normal;">LOGIN</text> <rect x="1" y="1" width="404" height="64" stroke-width="2" stroke="#4f4e4e" rx="8" ry="8" opacity="0.01" fill="#000000" style="cursor: pointer;"></rect> </g>

 

10 REPLIES 10

L5 Sessionator

Have you tried using just id="loginButton" and searchbyId?

L1 Bithead

yes that was one of the 1st thing I tried. Thing is this button is made from all these 4 tags and for some reason it can't find button using any method.

L1 Bithead

I am reading Web application for PSM documentation after couple of months now and found out we can also use 'searchby=text'. I don't think it was there earlier. Anyways, it failed with this error.

 

Element <text text-anchor....">...</text> is not clickable at point (804, 398). Other element would receive the click: <rect x=....

 

So it seems it recognize that <rect> tag is clickable. It failed with both (Button) and (Click)

L1 Bithead

Here is different error. This time I used full xpath of rect tag. (See html code in main post)

 

Timeout error. Element '/html/body/div/user-login-view/svg/g/g[1]/g[3]/rect[2]' was not found in new page. ]

L2 Linker

Try this:

LOGIN>(Button)(SearchBy=Text)

 

Like the message says, it found the element but if it were to click at the location in the browser's viewport where the element was found, then another element would be clicked instead.

 

This could indicate a cookie banner or some other floating element (toolbar, etc.) that is overtop.

Tried that. This is the error

 

Element <text text-anchor....">...</text> is not clickable at point (804, 398). Other element would receive the click: <rect x=....

 

 

I confirm there is no cookie banner there. Looks like the button itself is made of layers. Like when I hover mouse over you see some changes. There are many ways to do that seems this is something new that I never saw before i.e. use of g tags and rect tags

L4 Transporter

Hi @Gurpreet Singh​ 

 

As an alternative approach to achieving your goal, have you seen the PGU utility, in short you go through the required steps to log into the Website via PGU and it records the elements of the pages from the steps you have taken, then will generate you xml to import in the Connect Component, I can't guarantee this will help with your use case but worth a go.

 

https://community.cyberark.com/marketplace/s/#a3550000000EiC4AAK-a3950000000jjUeAAI

 

Hope this helps

 

Thanks

 

Michael

 

L4 Transporter

Hi @Gurpreet Singh​ 

 

Since several community members answered your question, could you kindly share if any of these solutions resolved your issue?

If so, could you please mark the appropriate answer as "Select as Best" to assist other community members.

 

If the issue is still relevant, I would advise raising a ticket with our support team for further assistance.

 

Thank you, Liad

  • 382 Views
  • 10 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!