public class

LoginGadget

extends Gadget
java.lang.Object
   ↳ it.com.atlassian.gadgets.pages.Gadget
     ↳ com.atlassian.jira.pageobjects.gadgets.LoginGadget

Class Overview

Represents login gadget in JIRA.

Summary

Constants
String ID Login gadget is built-in and always has this ID.
[Expand]
Inherited Fields
From class it.com.atlassian.gadgets.pages.Gadget
Public Constructors
LoginGadget()
LoginGadget(String id)
Public Methods
PageElement getError()
Get first error.
Iterable<PageElement> getErrors()
PageElement getLoginButton()
PageElement getPasswordField()
PageElement getPublicModeOffMessage()
PageElement getUsernameField()
boolean hasErrors()
boolean hasPublicModeOffMessage()
DashboardPage login(User user)
[Expand]
Inherited Methods
From class it.com.atlassian.gadgets.pages.Gadget
From class java.lang.Object
From interface com.atlassian.pageobjects.elements.PageElementFinder

Constants

public static final String ID

Login gadget is built-in and always has this ID.

Constant Value: "gadget-0"

Public Constructors

public LoginGadget ()

public LoginGadget (String id)

Public Methods

public PageElement getError ()

Get first error. If there is no error, the isPresent() of the returned element will return false.

Returns
  • first error on the gadget form.

public Iterable<PageElement> getErrors ()

public PageElement getLoginButton ()

public PageElement getPasswordField ()

public PageElement getPublicModeOffMessage ()

public PageElement getUsernameField ()

public boolean hasErrors ()

public boolean hasPublicModeOffMessage ()

public DashboardPage login (User user)