How to identify the button WebElement

  • I want to click this button. but I can not find any web element so that the driver can find out. Help me to fix this.

    <button type="submit" class="signupbtn btn_full btn btn-action btn-block btn-lg">

  • This is a web element in itself, write xpath for this button element and perform your action:

    webElement submitBtn = driver.findElement(by.xpath("//button[@type='submit']"));;

    To know more about 'how to create xpath' watch this video tutorial:

Log in to reply

Suggested Topics