Jump to content

Focus element by text


Recommended Posts

Now I am focusing input field on chrome browser by clicking specific co-ordinates in code.
But the positions of those fields are changed all the time so I can not ensure their position every time.
Are there any way to detect and focus web elements by its text, id or something?
Thank you.
 

Link to comment
Share on other sites

Now I am focusing input field on chrome browser by clicking specific co-ordinates in code.
But the positions of those fields are changed all the time so I can not ensure their position every time.
Are there any way to detect and focus web elements by its text, id or something?
Thank you.

Link to comment
Share on other sites

  • Moderators

How about you show some patience, please, instead of expecting everyone to fix it for you right away. I see Nine already responded to one of your threads, have you taken his suggestion and read through the material he linked you to? Be aware, this is not a forum where you put in a request and someone barfs up code for you; you will receive the most help when you show some effort.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...