Class NeoUIContext

java.lang.Object
com.onenetwork.platform.tools.test.ui.AbstractUIContext
com.onenetwork.platform.tools.test.ui.neo.NeoUIContext

public class NeoUIContext
extends AbstractUIContext
  • Field Details

  • Constructor Details

    • NeoUIContext

      public NeoUIContext()
    • NeoUIContext

      public NeoUIContext​(org.openqa.selenium.WebDriver driver)
      Constructs a new UIContext using the supplied WebDriver.
      Parameters:
      driver -
  • Method Details

    • createComponent

      public NeoComponent createComponent​(java.lang.String elementType, org.openqa.selenium.WebElement webElement)
    • createFMComponent

      public NeoComponent createFMComponent​(java.lang.String elementType, org.openqa.selenium.WebElement webElement)
    • waitUntilListItemVisible

      public org.openqa.selenium.WebElement waitUntilListItemVisible​(java.lang.String itemText, java.lang.String itemClass)
      Waits until List of item is visible
    • waitUntilUnmask

      public void waitUntilUnmask()
      Waits until the Ext loading mask has been removed.
    • waitUntilUnmask

      public void waitUntilUnmask​(org.openqa.selenium.SearchContext rootElement)
      Waits until the loading mask has been removed from some element.
    • waitUntilUnmask

      public void waitUntilUnmask​(org.openqa.selenium.SearchContext rootElement, org.openqa.selenium.By loadingMask)
      Overloaded version of waitUntilUnmask which takes xpath for WebElement of laoding mask
      Parameters:
      rootElement -
      loadingMask -
    • waitUntilMask

      public void waitUntilMask​(org.openqa.selenium.SearchContext rootElement, org.openqa.selenium.By loadingMask)
      Waits for the mask element to be visible on UI. Needed for browser like Chrome and Edge for whome method waitUntilUnmask() execute before the mask is rendered.
      Parameters:
      rootElement -
      loadingMask -
    • scrollIntoView

      public org.openqa.selenium.WebElement scrollIntoView​(org.openqa.selenium.WebElement webElement)
    • getElementTypeForNeoComponent

      public java.lang.String getElementTypeForNeoComponent​(org.openqa.selenium.WebElement neoEl)
      This method is used to get the elementType for the Neo Component
      Parameters:
      neoEl -
    • createDriver

      protected void createDriver()
      Description copied from class: AbstractUIContext
      For Chrome WebDriver the existing automated scripts may fail due to following reasons. - Compared to IE driver, Chrome driver is faster and hence we may need to provide explicit waits in automation scripts. - In some scenarios, Chrome driver does not support sendKeys() on elements like div and span or containers with multiple input elements. As a workaround sendKeys() can be replaced with Actions API of Selenium.
      Overrides:
      createDriver in class AbstractUIContext