YGGtorrent: fix login error detection

This commit is contained in:
kaso17 2017-12-07 23:34:27 +01:00
parent 2c83038ea8
commit 318cc86c6b
1 changed files with 1 additions and 6 deletions

View File

@ -103,13 +103,8 @@
id: "{{ .Config.username }}"
pass: "{{ .Config.password }}"
submit: ""
headers:
"[:authority]": "yggtorrent.com"
"[:method]": "post"
"[:path]": "/"
"[:scheme]": "https"
error:
- selector: "body > div.page-content > div > div.col-md-10 > div > div > div > div > div.content-box-large.box-with-header > form > center > table > tbody > tr:nth-child(3) > td:nth-child(2) > button.text:contains('Se connecter')"
- selector: "form > center > span[style=\"color:red\"]"
test:
path: "/"
selector: "a[href$=\"user/logout\"]"