Article Overview:
This article will cover how you can achieve the following:
How to resolve the "Page JS Interfering with Faker JS Import" error.
Problem Statement:
Extensions like the generateRandom extension may encounter the "Page JS interfering with the Faker JS import" error, resulting in failure.
Solution:
When we face the above error, it is mainly because the Faker JS page is not responsive.
This can be solved by navigating to the random URL in the new tab. Using the extension to generate the random data and switching back to the previous tab.
Example:
Follow the below steps:
- Navigate to (any web page) e.g. "https://rocketshop.virtuoso.qa" in the new tab.
This step will navigate to the web page in a new tab
- generateRandom("{{name.firstName}}") returning $FirstName
This step will generate the desired random data.
- Switch to the previous tab
This step will return you to the previous tab.
Comments
0 comments
Please sign in to leave a comment.