Jump to content
UBot Underground

Xpath Statement - Help Clicking A Button


Recommended Posts

I'm using xPath Builder Pro to help write an xPath statement and Im trying to figure out how to add a parameter.

 

 

For example there are lots of buttons all with the same class name so I believe the statement is created correctly

x://a[@class=class name]

 

When I test this function it returns all the names of the buttons which all have the same class. This sounds like its working.

But I just want to click 1 particular button with a specific name but I can't figure out how it should look... 

I have another similar existing xpath which does something similar so I copied the format like this but it doesn't work.

 

x:(//a[@class=class name])[button name]

 

Any ideas? Thanks!

Link to post
Share on other sites

If you can post the code of the button or ideally just the code of the entire page and point out what you want it would be a big help.

 

Otherwise, you have a couple of options here. You can use an offset but it would be better if you can target that element specifically by maybe first targeting a parent element and then moving down the tree.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...