Select Element in DOM with Xpath expression or bt class name
- 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
Assessment
This issue has not been assessed yet.