Which command should be used to confirm that test will pass in the future, when new element is added after page loaded?

Options
- waitForElementPresent
- pause
- assertElementPresent
- None of these


CORRECT ANSWER : waitForElementPresent

Discussion Board
WaitForElementPresent

Answer: WaitForElementPresent
Solution: WaitForElementPresent : WaitForElementPresent is used to pause the execution process until expected element will not add on the page.
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.
Therefore, WaitForElementPresent is the correct answer.


Rohit Srivastava 07-28-2014 05:42 AM

Selenium

Answer: waitforelementpresent

Solution: WaitForElementPresent: WaitForElementPresent is a command that is used to stop any execution process until and unless the expected element will not be presentend on page.
Pause: Pause command is use to pause the execution of process.

AssertElementPresent: AssertElementPresent is use to identify that the element is available on the page after performing any action.

Therefore, Option A is the correct answer.


Rohit Srivastava 07-28-2014 05:12 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement