menu

taiko

A node.js library to automate chrome/chromium browser

Channels
# All channels
view-forward
# General
view-forward
# Meta
view-forward
# News
view-forward
Team
Posts
Members
Info
down-caret

Guidelines to make this forum a better place.

Please read this before posting Here are a few ways make this forum better. Before posting a question …

thumbsup
1
message-simple
0

Screenshot of element is failing with error

Following error is seen for the call element level screenshot Error Message: Error: Invalid parameters (nodeId: integer value expected) Stacktrace: Error: Invalid parameters (nodeId: integer value expected) at _enqueueCommand…

thumbsup
0
message-simple
13

Always need to waitFor(2000) for element visible before performing actions on…

Currently I need to click one element, but sometimes the click action will not be performed as the element cannot be found. I tired to use the code below to make sure the element is visible before clicking it, but it still failed. But when I add await waitFor(2000), click action…

thumbsup
0
message-simple
1

How to select file from local system using Taiko

I have couple of scenarios where I need to select file from my local system to upload it into UI. I want to know how can I achieve this using Taiko. Scenario: 1. I open a web page. …

thumbsup
0
message-simple
1

i am having issues with using goto() when the page redirects. It doesn't seem…

"taiko": "^1.0.6"

thumbsup
0
message-simple
20

#General

Can someone please help me out with this query. Maybe a rather simple one for professionals , but for me as a beginner takes a lot of effort. Can someone guide me with an example on how do you copy a text which is displayed in the DOM to a variable so it can be extracted in the…

thumbsup
0
message-simple
2

Always get the error "Error: Navigation took more than 240000ms. Please…

I have executed 4 test cases in my gauge running, and it took 17 min to finish. The error occured when running the code in afterScenario after the 4th test scenario completed. Actually I see the page is already navigated to the page I want, but it stays on that page for 240000ms…

thumbsup
1
message-simple
5

Generating code in TypeScript, instead of JavaScript

Currently when I use It generates the Taiko script, by default, in JavaScript. I saw that a TypeScript support is also there. …

thumbsup
0
message-simple
2

Getting the value from a GUI page

I have a value (say 20) in a GUI page, just as a label. How can I retrieve the label in a Toiko script?

thumbsup
0
message-simple
7

global install of gauge/takio?

npm -g has become something to avoid, since you can access packages globally with npx. Globally installed packages adds dependancies to an environment which can be difficult to track. Can you use gauge and taiko alone with npx? Why does the docs specify using the global…

thumbsup
0
message-simple
5

Access Clipboard within tests?

I'm feeling a bit bone-headed. I am trying to test some copy/paste functionality on my app (taiko/chromium/js) and want to either examine the clipboard, or just execute a "Paste" as a user would. I can't seem to find anything like this in the docs or examples (or codebase for…

thumbsup
0
message-simple
4