Para comprobar si una determinada imagen se está mostrando en los test automatizados:
Selenium IDE
Command : verifyElementPresent
Target: //div[@id='Usuario']/table/tbody/tr/td[4]/img[@src='/Content/images/icono/no.png']
Pudiendo ayudarnos colocandonos encema y clickando botón derecho "inspeccionar elemento" para el xpath y "copiar la ruta de la imagen" para el source.
Selenium IDE
Command : verifyElementPresent
Target: //div[@id='Usuario']/table/tbody/tr/td[4]/img[@src='/Content/images/icono/no.png']
Pudiendo ayudarnos colocandonos encema y clickando botón derecho "inspeccionar elemento" para el xpath y "copiar la ruta de la imagen" para el source.
Comentarios
Publicar un comentario