0

"input type="button" onclick="Save(this)" value="Save"

I am trying to find this element using selenium webdriver with c# .

How to find the element?

1

Xpath:

//input[@type='button']
//input[@value='Save']

assuming input is unique.

Css Selector:

input[type='button']
input[value='Save']

assumine input is unique.

Check it out here. selenium cheat sheet link

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.