A Google CTR Click-through automation is used to automate clicks on search results to simulate user engagement.
Parameters
keyword- the search term entered into the Google search bar to initiate the automated search;targetUrl- the specific URL that the automation searches for within the Google search results;timeout- the duration in seconds that the automation waits after the last step before closing the browser;pagescount- the maximum number of pages in the Google search results that the automation will search through to find thetargetUrl.
Steps
The automation functions as follows:
- Navigates to Google and enters the
keywordin the search bar. - Clicks on the search button.
- Searches for the
targetURLspecified and opens it.- If
targetURLis not found on the first Google results page, automation continues searching through up topagescountpages.
- If
- Locates another internal link (from the same domain) on the page and clicks it.
- Waits for
timeoutseconds. - Closes the browser.
Exceptions
- If
targetURLis not found within thepagescountGoogle results pages, an error message appears in a browser, which remains open.