question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Got TypeError: activePage.locator is not a function when using variable as parameter on "Click" keyword

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
allcontributors[bot]commented, Nov 4, 2021

@aaltat

I’ve put up a pull request to add @laguna357! 🎉

1reaction
aaltatcommented, Nov 4, 2021

@allcontributors please add @laguna357 for bugs

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found