I wrote test case that switch to modal window, fill all fields and clicks 'submit' button.
After that message appears with text that item has been added (and appears spiner that inform me that request gone to the server)
but item is not on the page, only table with titles is visible.
I added to my code Explicit Wait
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//table//tr/td[3]"))
And wait for it 50 sec and my test fails with TimeOutException
However, when i am adding new item manually it appears immediately
Aucun commentaire:
Enregistrer un commentaire