Comments (3)
I think running everything in one file is expected, are you able to show your code?
from taiko.
Example:
const { openBrowser, goto, near, click, textBox, press, write, button, reload, text, tap} = require('taiko')
var readline = require('readline')
const random = require('random')
const delay = require('delay')
setConfig( { noOfElementToMatch: 200});
var consts = require('./consts.js');
var teste = 1;
while(teste < 5)
{
teste++
(async () =>
{
try
{
await openBrowser({args: ['--disable-gpu','--disable-dev-shm-usage','--disable-setuid-sandbox','--no-first-run','--no-sandbox','--no-zygote', '--user-data-dir=C:/bots/['+teste+']']})
await emulateDevice('iPhone X')
await goto('https://google.com/', {navigationTimeout:90000})
}
finally
{
}
})();
}
from taiko.
I'm pretty sure can only open browser once per test, so you would need to have a separate file for each of your profiles in C:/bots.
Depending on what you need each profile for, you could maybe put that into code instead. Otherwise a separate file is needed
from taiko.
Related Issues (20)
- Problem with proxy auth and I have a solution HOT 3
- Can not use assert.fail() in a alert()
- use headless mode to goto https url, return ERR_BAD_SSL_CLIENT_AUTH_CERT
- Need to pass only args to evaluate callback HOT 1
- More APIs should include name parameter
- Not able to run taiko using firefox on windows .Please kindly suggest HOT 1
- Taiko with Firefox browser - Error: The Browser instance was closed either via `closeBrowser()` call, or it exited for reasons unknown to Taiko. You can try launching a fresh instance using `openBrowser()` or inspect the logs for details of the possible crash. HOT 3
- "Navigation took more than 30000ms. Please increase the navigationTimeout" - working locally but issue in GitLab pipeline HOT 1
- Missing TS types for `scrollTo` alignment options and `.api` page for it is ambiguous
- Not found error with [email protected]
- Taiko is unable to identify the selector although the highlight API shows it on the screen HOT 1
- Tests do not start with Chrome and Edge with version 110 and above with --headless flag HOT 4
- Update to use Chrome for Testing HOT 1
- npm ERR! 500 Internal Server Error - GET https://registry.npmjs.org/taiko/-/taiko-1.3.10.tgz
- Click on Moving links is not waiting for the link to stop moving
- `openBrowser` with `observe` set, results in "Browser or page not initialized" HOT 5
- Dashboard page is blank when loaded through the embedded Chromium
- is there a function for dump the DOM
- 'Not attached to an active page' error when opening a Twitter user authentication popup window
- waitfor working intermittenly HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taiko.