Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagegroovy
titleSession validation
linenumberstrue
// Available variables
// ALogger logger, aspire logger, for debug purposes
// WebDriver driver, selenium driver instance, can manipulate the page at will

def element = null;

try {
  element = driver.findElement(By.className("user-profile"));
}
catch (NoSuchElementException nsee) {
  logger.warn(nsee, "Missing field on session validation");
}

return element != null; // If the element doesn't exist on the page, the user is not logged in anymore

General 

...

Troubleshooting

Info

No available troubleshooting at this moment

Problem

Solution

...

bgColor#fff