Skip to main content
New Participant
Aug 12, 2021 4:44 PM UTC
Question

Is there a way to use xpaths on Appian Selenium API

Is there a way we can use xpath expressions on Appian Selenium api without initializing webdriver class?

    3 replies

    danny.verb
    Employee
    Aug 12, 2021 6:32 PM UTC

    What is it you're trying to achieve? Is this specific to Appian RPA? If so, opening a browser using the low-code action with initiate the web driver and closing the browser will close it.

    New Participant
    Aug 13, 2021 6:03 AM UTC

    Hi...Thanks for reverting back.

    I am building an automation script using selenium API. While automating I found some components on UI do not have any Labels in order to get them automated.

    So thought of leveraging Webdriver functions. I want to know if there is anyway we can use xpath syntax on Appian Selenium api?

    acaciob0002
    Participating Frequently
    Aug 13, 2021 6:20 AM UTC

    Hey there, 

    Im not sure about Selenium, but in Cucumber you can use index instead xpath. Please check some examples below:

    tempoFixture.populateFieldWith("[51]", getRandomName(20));
    tempoFixture.clickOnCheckboxOption("[1]");

    Hope that help.

    Acacio B