codeceptjs / codeceptjs/CodeceptJS
Check form tag on action attribute
- Langage dominant
- JavaScript
- Étoiles
- 4.2k
- Forks
- 757
- Merge moyen
- 2 j 9 h
- PR mergées (30 j)
- 16
Description
#### 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"
}
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.