Skip to content
RTILA Web Business Automation
  • Home
  • Features
  • Pricing
  • Marketplace
  • Docs
  • Support

Cart & Checkout Icon

RTILA Web Business Automation
  • Home
  • Features
  • Pricing
  • Marketplace
  • Docs
  • Support
Free Download
Free Download
Popular Search chatgptdownloadapivariablepro

Billing & Licensing

  • Change License’s registered email address
  • Upgrade a License
  • Manage License Activation Count
  • Reset RTILA Studio local database
  • Standalone Exe Antivirus False Positive Alert
  • Team Member Activation URL & License
  • AppSumo Codes Redemption
  • Download & Activate RTILA Studio
  • AppSumo Code Stacking & Upgrade
  • Mac OS Installation Warning

How-To & Tutorials

  • Public Templates
  • How to target a CSS element
  • Change default Browser
  • Export Results to a CSV file
  • Profile Session Feature
  • License Check for Standalone Executables
  • OCR Feature: read text from images
  • Auto Download Pinterest Images
  • Save current URL using JavaScript
  • Search & Filter Projects
  • Run Automations in Silent Mode (no browser opening)
  • Correcting & Completing Auto-Recorder Commands
  • RTILA WordPress Plugin installation & configuration
  • Using Developer Tools In RTILA Studio
  • Create A Project From Scratch
  • Bring back disappearing commands & properties
  • RTILA Cloud API documentation
  • Export & share an RTILA project file
  • Install Browser Extensions using Profile Session
  • How To Fill a Form Using Generic Form Filler Child-Project
  • Project Settings: Import URLs manual entry, From File, From Project, and Read XML Sitemap
  • Project Settings: Import URLs manual entry
  • Use Local Storage Variable to scrape Do-follow Links
  • Schedule Launch of Automations
  • Email Results File via Gmail
  • Read from Google Sheets & Post on WordPress
  • Website Load Testing Automation
  • Read data from a txt or csv file
  • Downloading files
  • Open in a New tab
  • Using filters to complete a URL
  • Choosing the right collection
  • Set a Counter with JavaScript
  • Setup re-Captcha Resolution
  • Woo Categories & ChatGPT API
  • Login to Google Account & share profile session
  • Google Search Baby Steps
  • Auto-Recorder as a 1st step
  • Standalone Executable Bots

Technical Documentation

  • Custom Commands
  • Integrations
  • RPA & Desktop OS Commands
  • Add And Configure Dataset Properties
  • Inspection Panel Interface & Elements
  • Config & binaries files for Standalone
  • Focus On Element Command
  • Go To Url Command
  • Scroll Element Command
  • Execute JavaScript Code command
  • Reload Page Command
  • Compare Variables Condition
  • Take Screenshot Command
  • Smart Variable (ChatGPT API)
  • Child Projects
  • Confirm (Dialog Box) Command
  • Populate Text Field Command
  • Hover Mouse On Element Command
  • Download Page Command
  • Stop Automation Command
  • Log Message Command
  • Input (prompt box) Variable
  • Extract Results Command
  • Wait for Element to Appear Command
  • Selector (DOM element)
  • Check Radio Input Command
  • Dynamic Variable (JavaScript Code)
  • Static Variables
  • Set Checkbox State Command
  • Set Dropdown Value Command
  • Press a Keyboard Key Command
  • Upload File Command
  • Double Click On An Element Event
  • Click On An Element Event
  • Switch Browser Identity Command
  • Slack Notification Command
  • Save as Pdf Command
  • Go Back To Previous Page Command
  • Go Forward To Next Page Command
  • Proxies Built-In Rotation
  • External Proxy Rotation API
  • Regular Expressions
  • Ejecute JavaScript (Global)
  • Mock Location Command
  • Close Page Command
  • Desktop Notification Command
  • Command Folder
  • Clear Cookie Command
  • Change Page Size Command
  • Break Loop Command
  • DataSet Types
  • Automation Commands Panel
  • Crawler Commands
  • Alert Message Command
  • Wait Commands
  • Home
  • Docs
  • How-To & Tutorials
  • Save current URL using JavaScript

Save current URL using JavaScript

Table of Contents
  • Use case
  • JavaScript Line to catch current URL
  • Add JavaScript line to Property Filters Action
  • Use JavaScript line inside a Variable Command

Use case #

As you are crawling a more and more pages you may need to capture the URL that is currently associated with the data you are scraping or interacting with, so that you can later go back to that URL to take further actions. RTILA Studio is able to grab and save the current URL visit it by the Run browser thanks to a simple JavaScript line which you can use in the Property settings.

JavaScript Line to catch current URL #

Copy CodeCopiedUse a different Browser
FIELD_VALUE=window.location.href

Add JavaScript line to Property Filters Action #

Create a DataSet then a Property that you can name “Current URL” for instance. Then click on Filters and then in the Actions input field add the JavaScript line and click save. Once you add the JS line you will see the URL appearing in the result table.

Use JavaScript line inside a Variable Command #

Inside a variable command you need to use a slightly different JavaScript line, see below the variant to use below. You will notice that we need use VALUE for Automation commands whereas we use FIELD_VALUE on Properties.

Copy CodeCopiedUse a different Browser
VALUE=window.location.href

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on 24-Mar-23
Auto Download Pinterest ImagesSearch & Filter Projects

Powered by BetterDocs

Leave a Reply Cancel reply

You must be logged in to post a comment.

Table of Contents
  • Use case
  • JavaScript Line to catch current URL
  • Add JavaScript line to Property Filters Action
  • Use JavaScript line inside a Variable Command

RTILA CORPORATION

Suite 20C Trolley Square.
Wilmington, 19806 DE, USA.

Support

  • Documentation
  • Videos & Media
  • Support Tickets

Company

  • Cookie Policy
  • Privacy Policy
  • License Agreement
  • Payments & Refunds

Copyright © RTILA CORPORATION

Facebook GroupYouTube