- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-27-2023 11:47 PM
I am trying to build a custom PSM Connector for a website and the "stay logged in" checkbox needs to be checked. I've tried multiple types of xpath and searching by class or type but its not working. does anybody have any advice? thank you!
sample code:
username>{username}(Searchby=name)
//span[@class='sc-ciZhAO gzgQGh']>(click)(Findby=xpath)
Continue>(click)(Searchby=text)
i0118 > {password}
idSIButton9 > (Button)
11-27-2023 11:51 PM
A span is just a container, something you use to group other elements for the purpose of applying styling. Have you tried clicking the sibling input element that just preceeds the span? Example:
//input[@name="keepMeSignedIn"]You may be able to get away with just
keepMeSignedIn > (click)(searchby=name)
11-28-2023 12:04 AM
Hi Tim, thanks for the response. Ive tried both and still doesnt work and still receiving the cannot find eleement error
11-28-2023 12:22 AM
Hi @Enriqueto Bascugin
Can you try this x path example? //input[@type='checkbox']
11-28-2023 12:28 AM
What error exactly are you getting when you look in the debug logs? You are escaping the brackets as well, correct? It would mean that the XPath
//input[@name="keepMeSignedIn"]would be written as
//input^[@name="keepMeSignedIn"^]when using XPath in WebForm fields. See the documentation, specifically the table under the Input field heading.
12-12-2023 08:53 PM
Hi @Enriqueto Bascugin Just curious whether any of the above shared Xpath worked for you ?
12-12-2023 11:24 PM
Hi, I didn't test any of the suggestions above because we enabled SSO on the account and changed the login methods, so we didn't need the checkbox.
12-13-2023 01:45 AM
Okay thanks for updating the thread
01-16-2024 01:42 AM
Hi @Enriqueto Bascugin,
Have you succeeded in solving this problem?
If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.
Thanks,
Niv
01-16-2024 02:05 AM
Hi @Niv Levi
No, we haven't resolved the issue.
What we did was enable SSO to Workjam via Azure, and the login process is now different, so we don't need to check that textbox.
New login flow:
Open the URL > It will prompt with Azure Login form > injecting the credentials > Workjam admin page.
Hope this information helps.
Many thanks!
05-07-2024 08:55 PM
When changing my password, I had trouble selecting the checkbox. I solved it by replacing "Type=click" with the checkbox's ID.
Change]
username>{Username}(Searchby=name)
password>{Password}(Searchby=name)
//*[@id="loginChangePW"]>(click)(Searchby=XPath)
submitBtn>(Button)(Searchby=name)
loginSubmit>(Validation)(Searchby=id)
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!

