1.

Write A Code To Wait For A Particular Element To Be Visible On A Page Using Protractor?

Answer»

Visibility means that the element is not only displayed but also has a HEIGHT and width that is greater than 0. You can USE visibility of FUNCTION to check the visibility of the element

LET EC = Expected Conditions;

Let condition = EC.visibilityOf (element (by.id ("hidden")))

BROWSER. Wait (condition, 30000)

Visibility means that the element is not only displayed but also has a height and width that is greater than 0. You can use visibility of function to check the visibility of the element

Let EC = Expected Conditions;

Let condition = EC.visibilityOf (element (by.id ("hidden")))

Browser. Wait (condition, 30000)



Discussion

No Comment Found