Closed
Description
What are you trying to achieve?
Using I.dragSlider() method to drag slider.
What do you get instead?
When using I.dragSlider() method , getting the below error
invalid argument: invalid argument
from invalid argument: 'y' must be an int
(Session info: chrome=110.0.5481.100)
Provide console output if related. Use
--verbose
mode for more details.
Drag Slider Test:
invalid argument: invalid argument
from invalid argument: 'y' must be an int
(Session info: chrome=110.0.5481.100)
Provide test source code if related
Scenario('Drag Slider Test', async ({ I }) => {
await I.amOnPage('https://www.w3schools.com/howto/howto_js_rangeslider.asp')
await I.waitForVisible('#id2', 30)
await I.dragSlider('#id2', 30)
})
Details
- CodeceptJS version: 3.2.1
- NodeJS Version: 19.2.0
- Operating System:
- puppeteer || webdriverio || testcafe version (if related): webdriverio
- Configuration file:
require('dotenv').config()
//require('ts-node/register')
exports.config = {
tests: './testSuites/**/*_test.js',
output: './output',
helpers: {
WebDriver: {
url: 'http://localhost',
browser: process.env.BROWSER || 'chrome',
smartWait: 15000,
restart: true,
keepCookies: true,
keepBrowserState: true,
unhandledPromptBehavior: 'accept',
timeouts: {
pageLoad: 300000,
implicit: 10000,
script: 30000
}
},
ChaiWrapper: {
require: 'codeceptjs-chai'
},
REST: {
timeout: 50000
}
},
include: require('./configs/includes.js'),
plugins: {
autoLogin: {
enabled: true,
saveToFile: false,
inject: 'login',
users: require('./configs/autoLoginUsers.js')
},
tryTo: {
enabled: true
}
},
bootstrap: null,
mocha: require('./configs/mocha.js'),
reporter: 'mocha-multi',
require: ['dotenv', 'deepmerge']
}