codeceptjs / codeceptjs/CodeceptJS

Check form tag on action attribute

オープン
#1,366 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
16

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。