Class AddressTriggerField

java.lang.Object
com.onenetwork.platform.tools.test.ui.components.Component
com.onenetwork.platform.tools.test.ui.components.AddressTriggerField

public class AddressTriggerField
extends Component
Represents an instance of One.form.AddressTriggerField.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.openqa.selenium.WebElement inputEl  
    protected org.openqa.selenium.WebElement popupEl  
    protected org.openqa.selenium.WebElement triggerEl  

    Fields inherited from class com.onenetwork.platform.tools.test.ui.components.Component

    context, driver, element
  • Constructor Summary

    Constructors 
    Constructor Description
    AddressTriggerField​(UIContext context, org.openqa.selenium.WebElement formItemEl)  
  • Method Summary

    Modifier and Type Method Description
    void clearAddressfield()
    Clears the Values from the Address filed or popup
    void closeAddressPopup()
    Close the Address field popoup
    org.json.JSONObject getValue()  
    org.openqa.selenium.WebElement openAddressPopup()
    Open the popup for Address field
    void setValue​(org.json.JSONObject addrObj)  

    Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Component

    getEl, getId, isDisplayed, isRequired

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • inputEl

      protected final org.openqa.selenium.WebElement inputEl
    • triggerEl

      protected org.openqa.selenium.WebElement triggerEl
    • popupEl

      protected org.openqa.selenium.WebElement popupEl
  • Constructor Details

  • Method Details

    • setValue

      public void setValue​(org.json.JSONObject addrObj)
    • getValue

      public org.json.JSONObject getValue()
    • openAddressPopup

      public org.openqa.selenium.WebElement openAddressPopup()
      Open the popup for Address field
      Returns:
    • clearAddressfield

      public void clearAddressfield()
      Clears the Values from the Address filed or popup
    • closeAddressPopup

      public void closeAddressPopup()
      Close the Address field popoup