How to find a div element in the web page called nav-submit-button with xpath?

advertisements

In my selenium test, I need to find an button element with class name nav-submit-button. I am writing following xpath

"//class='nav-submit-button nav-sprite']"

But its not working. can anybody tell me how to write a correct xpath to find a div with named nav-submit-button.


Try this:

//*[contains(@class, 'nav-submit-button')]