Class SharedSteps


  • public class SharedSteps
    extends java.lang.Object
    SharedSteps provides a collection of utility methods that can be used across the entire IntelliJ platform. These methods facilitate common automation steps that can be reused in various test scenarios.
    • Constructor Summary

      Constructors 
      Constructor Description
      SharedSteps()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void waitForComponentByXpath​(com.intellij.remoterobot.RemoteRobot robot, int duration, int interval, com.intellij.remoterobot.search.locators.Locator xpath)
      Waits for a component to be visible within the IDE's UI hierarchy based on the provided XPath locator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SharedSteps

        public SharedSteps()
    • Method Detail

      • waitForComponentByXpath

        public static void waitForComponentByXpath​(com.intellij.remoterobot.RemoteRobot robot,
                                                   int duration,
                                                   int interval,
                                                   com.intellij.remoterobot.search.locators.Locator xpath)
        Waits for a component to be visible within the IDE's UI hierarchy based on the provided XPath locator.
        Parameters:
        robot - The RemoteRobot instance for interaction with the IntelliJ IDEA UI.
        duration - The maximum time to wait for the component to become visible, in seconds.
        interval - The interval at which to check the component's visibility, in seconds.
        xpath - The XPath locator used to find the component within the UI hierarchy.