Code: Select all
Attribute 'Value' of element for item 'ldlcV3Repository.LDLC.Panier.txt_QuantiteFirstProduit' does not match the specified value (actual='5', expected='5').

Actually, I think the problem is the type of the variable. One is an Integer, the other one may be a String.
Here is the userCode:
Code: Select all
Dim iQuantite as Integer
iQuantite = repo.LDLC.Panier.txt_QuantiteFirstProduit.Value
repo.LDLC.Panier.btn_QuantitePlus.Click() //a web button which increase the quantity of a product
Validate.Attribute(repo.LDLC.Panier.txt_QuantiteFirstProduitInfo, "Value", iQuantite + 1
I find a solution with this following code:
Code: Select all
Dim iQuantite as Integer
iQuantite = repo.LDLC.Panier.txt_QuantiteFirstProduit.Value
repo.LDLC.Panier.btn_QuantitePlus.Click()
dim iNewQuantite as Integer = repo.LDLC.Panier.txt_QuantiteFirstProduit.Value
validate.AreEqual(iQuantite+1,iNewQuantite)
Do you think it is due to the String/Integer variables?