In this tutorial, we have covered:
- How to get element text in Cypress
- Use alias and Invoke command
- Use variables to store values for later tests
- Scenarios were this will be useful
Before we get started, make sure to clone this project. You can run your first Cypress test on the LambdaTest platform in a few simple steps:
-
Step 1: Clone this repo and navigate to the cloned directory.
git clone https://github.com/uma-victor1/lambdatest-get-text-tutorial.git cd lambdatest-get-text-tutorial
-
Step 2: Installing the LambdaTest CLI - Install dependency
npm i
lambdatest-cypress run