Gregory
Katalon Apprentice
06/13/2018

Placeholder visibility verification

How can i verify a placeholder of <input>

Upvote
Quote

Comments

  • Marek Melocik
    Katalon Expert
    06/13/2018
    String expectedPlaceholder = "Email"
    String placeholder = WebUI.getAttribute(emailTestObject, "placeholder")
    
    if(expectedPlaceholder != placeholder) {
    	KeywordUtil.markFailed("Placeholder is not as expected.")
    }
    Best Answer
    Upvote
    Quote
  • Mate Mrse
    Katalon Expert
    06/13/2018
    Clean an simple, as always!

    Keep up the good work, Marek!
    Upvote
    Quote
Sign In or Register to comment.
Not the answer you're looking for? Consider subscribing to Business support.