Test Automation for Salesforce | Provar Logo Test Automation for Salesforce | Provar Retina Logo
  • SOLUTIONS
    • SALESFORCE
    • SERVICEMAX
  • RESOURCES
    • RESOURCES
    • FAQS
  • COMPANY
    • COMPANY
    • EVENTS
    • CAREERS
    • PARTNERS
    • CONTACT US
  • SUPPORT
  • BLOG
  • REQUEST A DEMO
Tooltip Testing

Tooltip Testing

Hover Over Tooltip

Testing a tooltip can be difficult, since right-clicking the tooltip to map the field in Test Builder will cause the Tooltip to disappear. We need therefore to map the field manually.

Step 1: Right-click on the field which produces the tooltip and choose Inspect (or press F12):

Step 2: In a PageObject of type LinkType(), create a WebElement for the located tooltip icon:

Step 3: In the Test Case, choose the Hover option on UI Action Test Step.

Assert Tooltip

Now that the tooltip is appearing, we need to manually map the tooltip to be able to assert it.

  1. In Chrome, hover over a field with a tooltip and choose Inspect (or press F12)
  2. Move to the ‘Elements’ tab of Inspect (or press Ctrl + Shift + C)
  3. Click the Tooltip and the element will be shown at the bottom of the screen
  4. Use the up and down keys on the keyboard to locate the element you would like to map. Once you find it, right-click and select ‘Copy Xpath’ or ‘Copy CSS Path’ to add the locator to the clipboard
  5. Add the new locator to the Page Object manually
  6. Add a UI Assert Test Step to your Test Case and add the expected test of the tooltip to be asserted

Share this:

  • Twitter
  • LinkedIn
vikas.wig 2017-05-31T17:43:03+00:00

Leave A Comment Cancel reply

  • Introduction
  • General Information
    • About Provar
    • System Requirements
    • Installing Provar
    • Granting Org Permissions to Provar
    • Updating Provar
    • Provar Support Process
  • Licensing Provar
    • License Types
    • License Activation
  • Tutorials
    • Start Here
    • Quickstart Guide
    • Quickstart Extension
    • Data Driven Testing
    • Testing with Different Profiles
    • Lightning Testing
  • Testing With Provar
    • Provar Desktop
    • Creating and Importing Projects
    • Adding a Connection
    • Creating Test Cases
    • Adding UI Test Steps
    • Using Functions
    • Managing Test Steps
    • API Testing
    • Using Test APIs
      • Test APIs Introduction
      • BDD APIs
      • Control APIs
      • Force.com APIs
        • Apex Bulk
        • Apex Execute
        • Extract Salesforce Layout
      • List Compare API
      • String APIs
      • UI Testing APIs
        • UI Action
        • UI Assert
        • UI Connect
        • UI Fill
        • UI Handle Alert
        • UI Navigate
        • UI On Screen
        • UI With Row
      • Custom APIs
        • Importing and Executing JAR Files
        • Creating Custom APIs
    • Environment Management
    • Debugging Tests
    • Running Tests
    • Test Cycles
    • Reporting
    • Exporting Test Cases
    • Exporting Projects
    • Callable Tests
      • Introduction to Callable Tests
      • Managing Parameters
      • Reusing a SFDC Connection
    • Data Driven Testing
      • DDT Introduction
      • Read Data From Excel
      • Write Data Into Excel
    • Tooltip Testing
    • Defining a Namespace Prefix on a Connection
    • Defining Proxy Settings
    • Namespace Org Testing
    • Searching Provar with Find Usages
    • Secrets Management and Encryption
    • Testing Browser Options
  • Salesforce Testing
    • Assert Page Error Messages on Add/Edit Product
    • Internationalization Support
    • Lightning Testing
    • List and Table Testing
    • Service Cloud Console Testing
    • Visualforce Testing
      • Introduction to Visualforce Testing
      • Introduction to XPaths
      • Maintaining Page Objects
      • Page Object Operations
      • Mapping Non-Salesforce Fields
      • Creating an XPath
  • Applications Testing
    • Database Testing
      • Database Testing Setup
      • Database Operations
    • Document Testing
    • Email Testing
      • Email Testing Setup
      • Email Testing Examples
    • Force.com Testing
    • Mobile Testing
      • Mobile Emulation
      • Mobile Testing with Appium
      • Perfecto mobile
      • ServiceMax FSA Mobile Testing
    • OrchestraCMS Testing
    • Salesforce CPQ Testing
    • ServiceMax Testing
    • Skuid Testing
    • Vlocity Testing
    • Webservices Testing
      • Web Services Introduction
      • Creating a Web Service Connection
      • Web Services Testing
  • DevOps
    • Introduction to Test Scheduling
    • Apache Ant, Java JDK and Environment Variables
    • Generating a Build File
    • ANT Task Parameters
    • ANT Licensing
    • Version Control and DevOps
    • Setting Up Continuous Integration
    • Masking Credentials in Jenkins
    • Running Provar on Linux
    • Salesforce DX
  • Version Control
    • Git
      • Introduction to Git Integration
      • Creating a Provar Repository
      • Git and Provar Projects
      • Working with Git
    • Team Foundation Server
  • Integration
    • Micro Focus (HP) ALM
    • Jira
    • Salesforce Test Integration Package
  • Best Practices
    • Supported Testing Phases
    • Automation Planning
    • Test Case Design
  • Troubleshooting
    • Add Floating License Firewall Exception
    • Add Gmail Firewall Exception
    • Add Permissions To Edit Provar.ini File
    • Common Install or Update Issues
    • Configure Provar UI in High Resolution
    • Enable Prompt To Choose Workspace
    • Increase System Memory For Provar
    • JavascriptException error via IE
    • Out of Memory error during CI Execution
    • Override Chrome Driver Version
    • Overriding the Chrome Install Location
    • Refreshing Org Cache Manually
    • Resolving Jenkins License Missing Error
    • Resolving Metadata Timeout Errors
    • Salesforce Connection Issues
    • Show Hidden Provar Files On Mac
    • Solving Administrator has Blocked Access to Client Errors
    • Test Builder Does Not Launch
    • Test Case Does Not Run on IE Browser
    • Test Case Steps Do Not Display
    • Test Execution Fails – Firefox Not Installed
  • FEATURES
  • RESOURCES
  • FAQs
  • BLOG
  • SUPPORT
  • HELP
  • CONTACT US
Copyright Provar 2019    |   All Rights Reserved
TwitterYouTubeLinkedinVimeo