1.

What Is An Accessor In Selenium?

Answer»

ACCESSOR is one of the type of Selenese.

  • Accessors are used for storing the VALUE of a target in a variable.

Ex:

  1. storeTitle – Stores the TITLE of a window in a variable
  2. storeText – Stores the target ELEMENT text in a variable
  • Accessors are also used for evaluating the result and storing the result in a variable

Ex: storeTextPresent – Evaluates whether the text is present in the current window. If the text is present stores true in the variable else stores FALSE

Ex: storeEementPresent – Evaluates whether the element is present in the current window. If the element is present stores true in the variable else stores false

Accessor is one of the type of Selenese.

Ex:

Ex: storeTextPresent – Evaluates whether the text is present in the current window. If the text is present stores true in the variable else stores false

Ex: storeEementPresent – Evaluates whether the element is present in the current window. If the element is present stores true in the variable else stores false



Discussion

No Comment Found