How to explain ExplicitWait in interviews?? Selenium WebDriver



Synchronization,Thread.sleep(time in millis),ImplicitWait
https://youtu.be/vtltAlKpyjs
ExplicitWait is mainly useful to apply wait on a single element.Synchronizing the state between the browser and its DOM, and your WebDriver script.This means that for as long as the condition returns a falsy value, it will keep trying and waiting.In order to achieve the ExplicitWait, we have to use a java class called WebDriverWait.

  • alert is present
  • element exists
  • element is visible
  • title contains
  • title is
  • visible text

File Upload Using Robot Class :

File upload in Selenium,Java,Robot Class


Video Link : https://youtu.be/UKUe0wpAN2k

Scenario 1:
Upload the TextFile and convert into PDF:C:\\SeleniumArtifacts\\ConvertTxttoPDF.txt
wait for visible Text

Scenario 2:
Upload the TextFile and convert into PDF : C:\\SeleniumArtifacts\\ConvertTxttoPDF.txt
Initial Title of the page : Zamzar – video converter, audio converter, image converter, eBook converter

wait for title is : Zamzar – File conversion progress

Scenario 3:
Upload the JarFile : C:\\SeleniumArtifacts\\SeleniumLatestVersion\\selenium-java-3.141.59\\client-combined-3.141.59.jar
wait for alert is Present

Scenario 4:
Upload the TextFile and Convert into PDF: C:\\SeleniumArtifacts\\ConvertTxttoPDF.txt
wait for element is visible :Download

Conclusion:
All the 4 Scenario’s will help to learn ExplicitWait.
We can use ExplicitWait in the programs to wait for a particular Element.

Leave a Reply

Your email address will not be published. Required fields are marked *