Got TypeError: activePage.locator is not a function when using variable as parameter on "Click" keyword
See original GitHub issueWhen using variable as parameter on “Click” keyword.
For example
FOR ${num} IN RANGE 1 51
Click xpath=//*[@id="grid"]/div[text()="${num}"]
END
It used to work on version 2.5.0. After I update to current version I got error message
TypeError: activePage.locator is not a function
To Reproduce
New Browser chromium headless=false
New Page http://zzzscore.com/1to50/en/
FOR ${num} IN RANGE 1 51
Click xpath=//*[@id="grid"]/div[text()="${num}"]
END
Desktop MacOS Catalina 10.15.7
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
"is not a function" error when calling a method from basic ...
I get "checkoutPage.loader.waitForVisible" is not a function" error. How can I declare getter for basic page so it could be called from any ......
Read more >Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
Read more >Passing variables to referenced functions - How To Create
In Internet Explorer 8- (or 9 in quirks mode), it is not passed any parameters at all: function myhandler(e) { ... } mydiv.onclick...
Read more >Why do I get the 'is not a function' error when using code ...
I am testing in firefox console. I can find the element with: document.getElementsByClassName("public-DraftStyleDefault-block…
Read more >General messages - IBM
DATA IN AN INPUT RECORD OR RESOURCE IS INVALID: RECORD LENGTH DOES NOT AGREE WITH LENGTH IN STRUCTURED FIELD INTRODUCER. Explanation: All structured...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@aaltat
I’ve put up a pull request to add @laguna357! 🎉
@allcontributors please add @laguna357 for bugs