Appian Selenium API

Overview

The library contains methods which allow you to interact with Appian components in a browser. It can be used in a Java application or integrated directly into any Selenium or Java-based testing tool.

Appian Selenium API contains the methods that are at the core of both Cucumber for Appian and FitNesse for Appian. If you are familiar with either Appian’s FitNesse or Cucumber tools then you are already familiar with the methods provided by the Appian Selenium API. For example, the table below shows the corresponding FitNesse and Cucumber methods for the same underlying Appian Selenium API method.

Appian Selenium API

loginWithUsernameAndPassword(jString userName, String password)

FitNesse for Appian

| login with username | USERNAME | and password | PASSWORD |

Cucumber for Appian

Given I login with username "USERNAME" and password "PASSWORD"

Note: Java 11 required for plugin version 23.4

Key Features & Functionality

The Appian Selenium API plug-in package includes:

  • The Appian Selenium API jar
  • Javadocs
  • An example of how to use the API in a Java application
  • An example of how to use the API in a Cucumber test 

The Appian Selenium API plug-in supports both Chrome and Firefox browsers. See the Appian Playbook for more information: Automated Testing with Appian Selenium API

Note on Appian Versions:

With each Appian release, a new version of the plug-in is also released to support the latest Appian components. This plug-in is backwards compatible, ensuring that you do not need to update your test cases when upgrading to new Appian versions.

Anonymous
Parents
  • Facing the below error on the login page after upgrading our appian environment to 23.2 recently

    2023-06-13 11:39:44,391 [main] DEBUG com.appiancorp.ps.automatedtest.tempo.TempoLogin - LOGIN [TESTER02]
    2023-06-13 11:39:54,251 [main] DEBUG com.appiancorp.ps.automatedtest.tempo.TempoLogin - WAIT FOR LOGIN
    2023-06-13 11:40:27,819 [main] ERROR com.appiancorp.ps.automatedtest.exception.ExceptionBuilder - Logout link
    org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//a[contains(@aria-label,'Open user options menu')]"}
    (Session info: chrome=114.0.5735.110)
    (Driver info: chromedriver=2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7),platform=Windows NT 10.0.19045 x86_64) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 0 milliseconds

  • Hi,

    Are you still experiencing this error? 

    If your Selenium functions do not specify that the Appian version is 23.2, you will receive this error upon login due to changes in the XPATH and HTML structure in 23.2.

    If you continue to experience this issue after specifying the Appian version as 23.2 in your Selenium, please open a support case with an example test script that reproduces the issue so that we can review further.

Comment
  • Hi,

    Are you still experiencing this error? 

    If your Selenium functions do not specify that the Appian version is 23.2, you will receive this error upon login due to changes in the XPATH and HTML structure in 23.2.

    If you continue to experience this issue after specifying the Appian version as 23.2 in your Selenium, please open a support case with an example test script that reproduces the issue so that we can review further.

Children