Executing the TestsHow to handle Implicit Waits

How to handle Implicit Waits

Implicit wait is a mechanism that allows the browser to wait for a specified amount of time before throwing an error when trying to locate an element.When a page is not loaded completely, this makes locating the elements difficult in execution which results in ElemntNotFound exception. You can use implicit wait to load for the element to appear. You can handle it by changing <MaximumTimeInSecondsToWaitForControl>5</MaximumTimeInSecondsToWaitForControl> in the ApplicationSettingsXML file.

Using Implicit Wait Parameter in the ApplicationSettingsXML file. 

Perform the following:

  1. Navigate to the Script Generated Folder. 
  2. In the script generated folder, to access Application Settings File, update the required value in <MaximumTimeInSecondsToWaitForControl>5</MaximumTimeInSecondsToWaitForControl> parameter.
  3. Save the changes.