Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 543 Bytes

setValueAndTrigger.md

File metadata and controls

20 lines (11 loc) · 543 Bytes

Set a value on an <input> or a <select> and trigger a change event

Examples:

browser.setValueAndTrigger("#a-select-or-input", "some value")

Author: maxgalbu

Params:

  • String selector - jQuery selector for the element
  • String value - value of the element to be set
  • Function [callback] - function that will be called after the change event is triggered
  • String [message] - message to display