codeceptjs / codeceptjs/CodeceptJS

Check form tag on action attribute

Abierto
#1,366 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
4.2k
Forks
757
Merge medio
2 d 9 h
PR fusionados (30 d)
16

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.