garris / garris/BackstopJS

Select Element in DOM with Xpath expression or bt class name

Open
#940 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.