1.

When To Use Accessors In Selenium?

Answer»

Accessors are mostly used for storing the value in a VARIABLE.

The variable can be used for following reasons:

  • To GET the value from an element and comparing with some dynamic value
  • To take a logical decision to execute the test STEPS
    • EX: if the value of the variable true execute step1 and step2 else step3 and step4
  •  To execute some statements in a loop BASED on the value returned by the element

Accessors are mostly used for storing the value in a variable.

The variable can be used for following reasons:



Discussion

No Comment Found