Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

122
Vistas
Selenium how to get hidden value inside html which is not showing in the html element

I working on one site where I found an input field value like

enter image description here

Here value Hotel rupdia is coming automatically from Database. But when I inspect the element I have found not set any value. And I am not sure how can read this text from here using selenium. As value not stored in any attribute or value

Here is the Html

<fieldset class="form-group position-relative outline-none" id="__BVID__458"><div tabindex="-1" role="group" class="bv-no-focus-ring"><input name="name" type="text" placeholder="Property name" autocomplete="new-password" class="form-control is-valid" inputmode="text" id="__BVID__459"><!----><!----><!----><!----><!----><!----><!----><!----><div class="invalid-tooltip">  </div><!----><!----><!----></div></fieldset>

Can anyone face this type of issue? And help me to find out the solution?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Instead .getText(). try applying .getAttribute("value") on that web element

about 4 years ago · Juan Pablo Isaza Denunciar

0

Use this xpath

//div[@class='bv-no-focus-ring']//input[@name='name']

as

String val = driver.findElement(By.xpath("//div[@class='bv-no-focus-ring']//input[@name='name']")).getAttribute("value"); 

and print this val, Also remember to put some sleep before using this code.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda