Closed perry-mitchell closed 6 years ago
Ah brilliant! Thank you @LinusU that's perfect!
Tried adding tests for Facebook, but their security policies (I'm guessing) don't really allow for me to run anything there using Nightmare.
{
"name": "Facebook",
"url": "https://www.facebook.com/",
"expectedFields": {
"username": "#login_form input[type=email][name=email]",
"password": "#login_form input[type=password][name=pass]"
}
}
Hmm, the Travis error is strange, this is the HTML from the site:
I wonder if they are doing something with
User-Agent
headers or similar...edit: haha 😆 I know what it is!
They aren't setting
type="text"
. The default istext
, but the query-selector engine doesn't care about that...Maybe add something like this:
It's a bit annoying to have everything twice though 🤔
btw. this specific query selector catches it:
input:not([type])[name^=user]