Zombie js browser.fill selecting input

Tell us what’s happening:
Describe your issue in detail here.
I have issue with selecting inputs for different forms. Example for form element with id “testform” I have input element with name “issue-title”. For that I have written code using zombie js:
browser.fill("#testform issue-title", “mommy mommy help me help me!”)

Please help me, this has taken me days now. I have goals to achieve for this month. Thank you.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36

Challenge: Issue Tracker

Link to the challenge:

Hi,
You should be able to select the input field as follows:
browser.fill("#testform input[name=issue-title]", "mommy mommy help me help me!")

You should get more ideas if you read about CSS Selectors in general.

Cheers!

i have tried this, still gives me error:

AssertionError [ERR_ASSERTION]: No INPUT matching ‘#testform input[name=issue_title]’

It is difficult to debug or suggest anything further without looking at your form code. Probably something is not right there?

Btw, ids are case-sensitive. So, if the id is “blackCat” your selector must be #blackCat and not #blackcat

yes you are right, Sir. Found the error. The id is in camelCase. Thank you so much.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.