• Use Cases
    • Team
      • Technical
      • Digital
    • Industry
      • eCommerce
      • Travel
      • Gambling
      • Public Sector
    • Website Type
      • EnterpriseHigh traffic websites with advanced functionality, such as booking, browsing or paying.
      • Small/MediumWebsites with low-mid traffic that have one or more key functionalities including checkout, sign-ups or account login.
      • AgenciesWeb agencies that help clients build, maintain and improve their websites.
  • Platform
    • Performance
    • Security
    • Reliability
    • How It Works
  • Customers
  • Learn
    • About Us
    • Knowledge Base
    • From The Blog
      • How Travel Disruptions Have Affected Website Performance
      • The Cloudflare Incident; How it affected us
      • New Feature: Sitemap Monitoring
  • Pricing
  • Log In
  • Get Started
  • Use Cases
    • Team
      • Technical
      • Digital
    • Industry
      • eCommerce
      • Travel
      • Gambling
      • Public Sector
    • Website Type
      • EnterpriseHigh traffic websites with advanced functionality, such as booking, browsing or paying.
      • Small/MediumWebsites with low-mid traffic that have one or more key functionalities including checkout, sign-ups or account login.
      • AgenciesWeb agencies that help clients build, maintain and improve their websites.
  • Platform
    • Performance
    • Security
    • Reliability
    • How It Works
  • Customers
  • Learn
    • About Us
    • Knowledge Base
    • From The Blog
      • How Travel Disruptions Have Affected Website Performance
      • The Cloudflare Incident; How it affected us
      • New Feature: Sitemap Monitoring
  • Pricing
  • Log In
  • Get Started

Back to Knowledgebase

Categories

Account & Billing

Getting Started

Performance Monitoring

Alerts & Notifications

Uptime Monitoring

Security Monitoring

Synthetic User Journey Monitoring

Interpreting Data

Assurance and Search

Sitemap Monitoring

Other Articles

Action: ApiCall

Action: CheckCookie

Action: Alert

Action: Dropdown

Action: ClickCoordinates

Action: PageSource

Action: PickItem

This action is designed for selecting an item at random from a predefined list of items. The item is then available in the $RapidStore namespace for use in other areas of a script.

An example use for this action would be for selecting a search term at random and then using it in a SendKeys action to enter the search term in a text field.

Firstly, we need to configure the PickItem action. Here we are defining a list of three search terms (items) to pick from and the name to assign the selected item to in the $RapidStore namespace:

Next, we need to use the selected item in a SendKeys action. We do this using the ‘Name’ attribute from the PickItem actions and dot notation to access the $RapidStore namespace: $RapidStore.SearchTerm. This example does exactly that and inputs the value into the #search.input-text input field:

Finally, the full step put together. The prerequisite is that the journey is on a page with the search field present and the intention of the step is to pick a search term at random, enter it into the search field, submit the search and wait for products to be returned.

Start your free 30-day trial today

Start monitoring today, no credit card required. Or chat to our friendly team about your requirements.

GET STARTEDLet’s Talk

RapidSpike - Global eCommerce Winner 2021
RapidSpike - Northern Digital Awards Winners
RapidSpike - Insider Yorkshires Most Exciting Companies
RapidSpike - UK Dev Awards 2021 Winner
RapidSpike - Prolific North Top Tech 30 To Watch
RapidSpike - Cyber Accelerator Alumni

Copyright © 2022 — All Rights Reserved.

RapidSpike - AWS Well Architected
RapidSpike - AWS Partner Network
  • Solutions
    • Technical
    • Digital
    • eCommerce
    • Travel
    • Gambling
    • Public Sector
    • Enterprise
    • Small/Medium
    • Agencies
    • New Relic
    • Customers
    • Pricing
  • Platform
    • Performance
    • Security
    • Reliability
    • How It Works
    • Insights
    • Alerting & Integrations
    • All Features
    • Synthetic User Journeys
    • Google Lighthouse
    • Core Web Vitals & Performance
    • Webpage Test
    • Real User Monitoring
    • Vulnerability Scanning
    • Magecart Attack Detection
    • Uptime
    • Assurance & SEO
  • Learn
    • Blog
    • Knowledge Base
    • API Documentation
    • System Status
    • RapidSpike Roadmap
    • Log In
  • Company
    • About Us
    • Contact
    • Careers
    • Press
    • Privacy Policy
    • Terms & Conditions
    • Vulnerability Disclosure