-
-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
Description
What are you trying to achieve?
When using I.dragSlider() method , getting the below error
invalid argument
from invalid argument: 'type' must be one of the strings 'key', 'pointer' or 'none'
(Session info: chrome=84.0.4147.125)
What do you get instead?
I.dragSlider() should execute successfully without any error
Provide console output if related. Use
--verbose
mode for more details.
1)
Drag Slider Test:
invalid argument
from invalid argument: 'type' must be one of the strings 'key', 'pointer' or 'none'
(Session info: chrome=84.0.4147.125)
Scenario Steps:
- I.dragSlider("#id2", 70) at Test.Scenario (slider_test.js:5:7)
- I.amOnPage("https://www.w3schools.com/howto/howto_js_rangeslider.asp") at Test.Scenario (slider_test.js:4:7)
Provide test source code if related
Feature('');
Scenario('Drag Slider Test', (I) => {
I.amOnPage('https://www.w3schools.com/howto/howto_js_rangeslider.asp');
I.dragSlider("#id2",70)
});
Details
- CodeceptJS version: 2.6.8
- NodeJS Version: 10.16.3
- Operating System: windows 10
- puppeteer || webdriverio || protractor || testcafe version (if related) webdriver
- Configuration file:
const { setHeadlessWhen } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);
exports.config = {
tests: './*_test.js',
output: './output',
helpers: {
WebDriver: {
url: 'http://localhost',
browser: 'chrome'
}
},
include: {
I: './steps_file.js'
},
bootstrap: null,
mocha: {},
name: 'Codeceptjs-Javascript-Example',
plugins: {
retryFailedStep: {
enabled: true
},
screenshotOnFail: {
enabled: true
},
wdio: {
enabled: true,
services: ['selenium-standalone']
}
}
}
Metadata
Metadata
Assignees
Labels
No labels