codeceptjs / codeceptjs/CodeceptJS

Check form tag on action attribute

Aperta
#1,366 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
4.2k
Fork
757
Merge medio
2g 9h
PR unite (30g)
16

Descrizione

#### 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"
}

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.