Skip to content

Select Element in DOM with Xpath expression or bt class name #940

@nsp27

Description

@nsp27

Hi

I want to select different themes such as Gray Theme, Navy Theme etc.

Default Gray Theme Sky-Blue Theme Blue Theme Navy Theme

I tried below scenario:-
"scenarios": [
{

  "label": "accord blue",
  "url": "",
  "delay": 3000,
  "selectorExpansion": true,
  
  "clickselector":['button.btn.btn-primary'],
  
  "postInteractionWait": 200,
  
  "misMatchThreshold": 5,
  "onBeforeScript": "onBefore.js",
  "onReadyScript": "onReady.js"
}

]

I can see that it just load the page with the URL and take screenshot. It does not click on the button. Does it support Xpath expressions such as:-
//button[@OnClick='themeClickSkyBlue()']?
Do you have any recommendation to work on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions