Google News
logo
Selenium - Quiz(MCQ)
Which command should be used to confirm that test will pass in the future, when new element is added after page loaded?
A)
pause
B)
assertElementPresent
C)
waitForElementPresent
D)
None of the above

Correct Answer :   waitForElementPresent


Explanation :

Pause : Pause is used to the stop or pause the execution process for specified time period.

AssertElemetPresent : AssertElemetPresent is used to identify whether the element is available on the page or not.

WaitForElementPresent : WaitForElementPresent is used to pause the execution process until expected element will not add on the page.
 
Therefore, WaitForElementPresent is the correct answer.

Advertisement