Below is the code snippet :

**<input class="el-input__inner" autofocus="autofocus" type="text" placeholder="Identifying Type" autocomplete="off">**

How do I identify the placeholder element

  • please edit your question, you have missed out a huge part of it – Yu Zhang Mar 9 '17 at 6:22
  • Add some more details in your code snippet; also paste your code what you have tried so far. – Bharat Mane Mar 9 '17 at 7:02

You can use getAttribute() method to find the placeholder of an element like:

String placeholderValue = driver.findElement(By.className("el-input__inner")).getAttribute("placeholder");
| improve this answer | |

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