![]() type() but does not trigger the keyboard events.check(selector)Ĭhecks the selector checkbox element.uncheck(selector) Empty or falsey values provided for text will clear the selector's value. insert() enters the text provided into the selector element. insert() instead as it will be faster and more robust.insert(selector) If you don't need the keyboard events, consider using. For example, if you wanted to fire an enter key press, you would write. Key presses can also be fired using Unicode values with. type() mimics a user typing in a textbox and will emit the proper keyboard events. ![]() Mouseout the selector element once.type(selector)Įnters the text provided into the selector element. Mouseovers the selector element once.mouseout(selector) Mouseups the selector element once.mouseover(selector) ![]() Mousedowns the selector element once.mouseup(selector) Refreshes the current page.click(selector)Ĭlicks the selector element once.mousedown(selector) You can also adjust how long goto will wait before timing out by setting the gotoTimeout option on the Nightmare constructor.back() Only things that would cause no page to appear in the browser window, such as no server responding at the given address, the server hanging up in the middle of a response, or invalid URLs, are errors. Note that any valid response from a server is considered “successful.” That means things like 404 “not found” errors are successful results for goto. details: A string with additional details about the error.code: The underlying error code describing what went wrong.message: A string describing the type of error.If the page load fails, the error will be an object with the following properties: Var fork = require('child_process').fork
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |