two times clickselector or clickselectors doesn't seem to work
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 621
- PR merge metrics
- No merged PRs in 30d
Description
I hope someone can help me. I need to first click on a checkbox, then on button. Tried both ways as shown below. When i test with both selectors individually, they work. When i test with both in 1 script, nothing works.
`{
"id": "backstop_default",
"viewports": [{
"label": "phone",
"width": 320,
"height": 480
}, {
"label": "desktop",
"width": 1200,
"height": 1024
}],
"onBeforeScript": "puppet/onBefore.js",
"onReadyScript": "puppet/onReady.js",
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "backstop_data/engine_scripts",
"html_report": "backstop_data/html_report",
"ci_report": "backstop_data/ci_report"
},
"report": ["browser"],
"engine": "puppeteer",
"engineFlags": [],
"asyncCaptureLimit": 10,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": true,
"scenarios": [{
"label": "Retouren - Aanmelden - ReturnMethod",
"cookiePath": "backstopjs/generated/cookies/retouren.json",
"url": "https://mijn.nl.wehkamp.dev.blaze-public.ps/retouren/aanmelden",
"readySelector": "[class^=Checkbox_label_]",
"clickSelector": "[class^=Checkbox_label_]",
"clickSelector" : [class*=SubmitReturnPage__actionButton_]",
"selectors": ["main"]
}]
}`
`{
"id": "backstop_default",
"viewports": [{
"label": "phone",
"width": 320,
"height": 480
}, {
"label": "desktop",
"width": 1200,
"height": 1024
}],
"onBeforeScript": "puppet/onBefore.js",
"onReadyScript": "puppet/onReady.js",
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "backstop_data/engine_scripts",
"html_report": "backstop_data/html_report",
"ci_report": "backstop_data/ci_report"
},
"report": ["browser"],
"engine": "puppeteer",
"engineFlags": [],
"asyncCaptureLimit": 10,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": true,
"scenarios": [{
"label": "Retouren - Aanmelden - ReturnMethod",
"cookiePath": "backstopjs/generated/cookies/retouren.json",
"url": "https://mijn.nl.wehkamp.dev.blaze-public.ps/retouren/aanmelden",
"readySelector": "[class^=Checkbox_label_]",
"clickSelectors": ["[class^=Checkbox_label_]", "[class*=SubmitReturnPage__actionButton_]"],
"selectors": ["main"]
}]
}`
Contributor guide
Assessment
This issue has not been assessed yet.