User Tools

Site Tools


actions:Browser_Form_Actions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
actions:Browser_Form_Actions [2019/01/31 22:11]
JMichaelTX
actions:Browser_Form_Actions [2021/03/24 17:52] (current)
JMichaelTX [Introduction] ADD Notice about dynamic web pages
Line 5: Line 5:
 The *Browser Form Actions* let you interact with form fields in a active web browser page, including submitting forms, reading, writing and focusing fields, and more.  These are companion actions to the [[Browser_Window_Actions|browser window actions]] for creating and moving between tabs and windows. The *Browser Form Actions* let you interact with form fields in a active web browser page, including submitting forms, reading, writing and focusing fields, and more.  These are companion actions to the [[Browser_Window_Actions|browser window actions]] for creating and moving between tabs and windows.
  
 +:!:  **NOTICE:​** ​ Some web pages may use dynamically generated element IDs and/or classes, which may result in some Keyboard Maestro Actions that do not work as designed. ​ For these pages, you may need to use Keyboard Maestro tools like [[actions:​Execute_a_JavaScript_in_Browser|Execute a JavaScript in Browser actions]] with JavaScript tools like [querySelector](https://​developer.mozilla.org/​en-US/​docs/​Web/​API/​Document/​querySelector) to get and set these dynamic web form fields.
 ==== Available Actions ==== ==== Available Actions ====
  
Line 25: Line 26:
 Each _Action_ has a parameter to uniquely identify the form or form field on the web page. Each _Action_ has a parameter to uniquely identify the form or form field on the web page.
 The parameter can be an [[:XPath]] or a JavaScript. ​ Keyboard Maestro will try to identify all forms and field on the web page, and make them available in a popup on the _Action_. ​ To view the popup, click on the button labeled "Front Browser"​ or "​Google Chrome"​ or "​Safari",​ based on the specific Action you have selected. The parameter can be an [[:XPath]] or a JavaScript. ​ Keyboard Maestro will try to identify all forms and field on the web page, and make them available in a popup on the _Action_. ​ To view the popup, click on the button labeled "Front Browser"​ or "​Google Chrome"​ or "​Safari",​ based on the specific Action you have selected.
- 
---- 
  
 ===== Definitions ===== ===== Definitions =====
Line 84: Line 83:
  
 This action resets the selected web form, clearing all entered text and values. This action resets the selected web form, clearing all entered text and values.
- 
---- 
  
 ===== Examples ===== ===== Examples =====
 +
 +{{:​actions:​set-form-field-to-text-km8.png?​nolink|}}
  
 {{:​action:​interactwithwebform.png|}} {{:​action:​interactwithwebform.png|}}
- 
---- 
  
 ===== See Also ===== ===== See Also =====
- 
  
 === Actions === === Actions ===
actions/Browser_Form_Actions.1548990697.txt.gz ยท Last modified: 2019/01/31 22:11 by JMichaelTX