What's difference between wait for element present and wait for element visible..?

Hi,

Just want to know about difference between wait for element present and visible…?

Thank You.

An element might be present (as in loaded in DOM) but not visible (e.g. it might be out of view so you might need to scroll to see it).

Mate Mrse said:

An element might be present (as in loaded in DOM) but not visible (e.g. it might be out of view so you might need to scroll to see it).

P.S.
If u want to run click action, obviously waitForElementVisible is a good choose. If u want to run script, perhaps u could try waitForElementPresent

2 Likes