Please help so i want to click the link “login” within the sentence “Already have an account? Login”
But when run it didnot click the Login but the whole sentence. already try with xpath but still not working.
Please help, thanks!
Hi there,
Thank you very much for your topic! It may take a little while before Katalon team member or others forum members respond to you.
In the meantime, you can double-check your post to see if you can add any extra information i.e. error logs, HTML codes, screenshots, etc. Check out this posting guide to help us help you better!
Thanks!
Katalon Community team
Hi @liafernanda989,
Thank you for sharing your issue on our Katalon forum.
Can you please help share your code so that we can better support?
Hi @elly_tran
thank you for your response,
Here i shared the code and the locator of the element
thankyou!
Hi @liafernanda989,
Please try to write the whole android.widget.Textview
like your ID Password line. Follow this guide: [Mobile] Tap | Katalon Docs
Hi @Elly_Tran
thank you for the solution, i already tried it but still not working.
I think it is because the whole sentence “Already have an account? Login” is one element, so when do tap instruction it will click on the whole text.
How to pointing to only the “LOGIN” text?
Thanks
Hi @liafernanda989,
As I can see, you use tap for the whole TextView Already have an account? Login
so it will tap the whole sentence. The problem is that you put the whole sentence into 1 locator / TextView right? You have to separate them apart, make Login a button, and then tap on Login
TextView. Hope this is clear.
Sample code of Login:
//p[contains(text(), 'Already have an account?')]/a[text()='Login']