com.atlassian.webdriver.jira.component.dashboard
Class GadgetView

java.lang.Object
  extended by com.atlassian.webdriver.jira.component.dashboard.GadgetView
All Implemented Interfaces:
org.openqa.selenium.SearchContext, org.openqa.selenium.WebElement

public class GadgetView
extends Object
implements org.openqa.selenium.WebElement

GadgetView is an implentation of the internal view for a gadget and just extends a WebElement so all the normal methods that WebDriver exposes on web elements is available.


Constructor Summary
GadgetView(org.openqa.selenium.WebElement view)
           
 
Method Summary
 void clear()
           
 void click()
           
 void close()
          Closes the Gadget view and returns the WebDriver context back to the default content Which is usually the Dashboard content.
 org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
           
 List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
           
 String getAttribute(String s)
           
 String getCssValue(String propertyName)
           
 org.openqa.selenium.Point getLocation()
           
 org.openqa.selenium.Dimension getSize()
           
 String getTagName()
           
 String getText()
           
 String getValue()
          Deprecated. Use WebElement.getAttribute(String)
 boolean isDisplayed()
           
 boolean isEnabled()
           
 boolean isSelected()
           
 void sendKeys(CharSequence... charSequences)
           
 void setSelected()
          Deprecated. Use WebElement.click()
 void submit()
           
 boolean toggle()
          Deprecated. Use WebElement.click()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GadgetView

public GadgetView(org.openqa.selenium.WebElement view)
Method Detail

close

public void close()
Closes the Gadget view and returns the WebDriver context back to the default content Which is usually the Dashboard content.


click

public void click()
Specified by:
click in interface org.openqa.selenium.WebElement

submit

public void submit()
Specified by:
submit in interface org.openqa.selenium.WebElement

getValue

@Deprecated
public String getValue()
Deprecated. Use WebElement.getAttribute(String)

getValue has been removed from WebElement


sendKeys

public void sendKeys(CharSequence... charSequences)
Specified by:
sendKeys in interface org.openqa.selenium.WebElement

clear

public void clear()
Specified by:
clear in interface org.openqa.selenium.WebElement

getTagName

public String getTagName()
Specified by:
getTagName in interface org.openqa.selenium.WebElement

getAttribute

public String getAttribute(String s)
Specified by:
getAttribute in interface org.openqa.selenium.WebElement

toggle

@Deprecated
public boolean toggle()
Deprecated. Use WebElement.click()

This has been removed from WebElement.


isSelected

public boolean isSelected()
Specified by:
isSelected in interface org.openqa.selenium.WebElement

setSelected

@Deprecated
public void setSelected()
Deprecated. Use WebElement.click()

setSelected has been removed from WebElement


isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.openqa.selenium.WebElement

getText

public String getText()
Specified by:
getText in interface org.openqa.selenium.WebElement

findElements

public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
Specified by:
findElements in interface org.openqa.selenium.SearchContext
Specified by:
findElements in interface org.openqa.selenium.WebElement

findElement

public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
Specified by:
findElement in interface org.openqa.selenium.SearchContext
Specified by:
findElement in interface org.openqa.selenium.WebElement

isDisplayed

public boolean isDisplayed()
Specified by:
isDisplayed in interface org.openqa.selenium.WebElement

getLocation

public org.openqa.selenium.Point getLocation()
Specified by:
getLocation in interface org.openqa.selenium.WebElement

getSize

public org.openqa.selenium.Dimension getSize()
Specified by:
getSize in interface org.openqa.selenium.WebElement

getCssValue

public String getCssValue(String propertyName)
Specified by:
getCssValue in interface org.openqa.selenium.WebElement


Copyright © 2014 Atlassian. All rights reserved.