lundi 27 juillet 2020

Selenium is reading placeholder value

I am running some tests using Selenium and in one of the test I check if a value in a box is equal to zero. The problem is that when I run the test normally it fails because it is always getting a value equal to zero, but when I run it with debugging step by step it gets a value different to zero and it passes.

I came to the conclusion that the page is using a placeholder value of zero meanwhile it gets the real number from the database. Is there a way to get the real value of the text?

Aucun commentaire:

Enregistrer un commentaire