JQuery and selector tricks for web automation


We can utilize the below methods in order to:

  • Effectively automate tasks in web pages that do not offer a "convenient" structure, such as "name" and/or "id" attributes, by targeting via sibling elements and the contains("") method.

  • Construct a selector for the Controls Repository through a JQuery.

  • Scroll to any element on a web page, to completely avoid the usage of "Send Keys".

  • Implement a "For Each" loop directly in our Javascript code.

  • Target elements within an Iframe via our Javascript code.

  • Fully handle an "Alert", Javascript-generated window.

The following processes have been exported from WinAutomation

Additional resources

  • CSS selectors:

    Usage of CSS selectors for web automation

  • Generate selector from JQuery:

    Generate selector from JQuery

  • JQuery siblings:

    Usage of JQuery siblings

  • Scroll into view:

    How to scroll into view

WinAutomation process example files