mercredi 1 mars 2017

How to write the code in selenium to wait for each action happened in the class

How to write the code in selenium to wait for each action happened in the class. Basically it happened very fast we can't see any action while executing.Lets say an example if i click on button should wait for 2 seconds and after loading page should wait wait for 2 seconds mean need to wait for each action i should be able to see each action in detail. I can write Thread.sleep(); but for each action i need to write this. I want to write once like implicit wait() or explicit wait(). Any suggestions will be greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire