codeceptjs / codeceptjs/CodeceptJS
Check form tag on action attribute
- Ngôn ngữ chính
- JavaScript
- Star
- 4.2k
- Fork
- 757
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 16
Mô tả
#### What are you trying to achieve?
I am trying to check all the form tags for the presence of the action attribute "getform. php".
#### What do you get instead?
expected all elements (//form) to have attributes {"action":"getform.php"} "0" to equal "6"
` I.seeAttributesOnElements('//form', {'action': "getform.php"});`
but
`I.seeAttributesOnElements('//form', {'method': "post"}); `
is OK
### Details
* CodeceptJS version: last
* NodeJS Version: last
* Operating System: ubuntu
* Protractor || WebDriverIO || Nightmare version (if related) - puppeteer
* Configuration file:
{
"tests": "./*_test.js",
"timeout": 10000,
"output": "./output",
"helpers": {
"Puppeteer": {
"url": "http://localhost",
"waitForNavigation": "networkidle0",
"waitForAction": 1000,
"restart": false,
"show": true
}
},
"include": {
"I": "./steps_file.js"
},
"bootstrap": false,
"mocha": {},
"name": "test_codecept",
"translation": "ru-RU"
}
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.