<input id="" name="" maxlength="100" readonly="" title="root@ru.stackoverflow.com"> 

there is such a tag, finding it is not a problem. but how can selenium draw the text from the title attribute to a variable?

    1 answer 1

    guilty, eventually found the answer to your question. and within two minutes after its publication.

     WebElement titleread = driver.findElement(By.xpath("")); String lr = loginread.getAttribute("title"); System.out.println(lr); // для проверки 
    • don't forget to mark your answer as accepted - Mikhail Vaysman