Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DragSlider not working for Webdriver #3598

Closed
Aadilpatni opened this issue Feb 20, 2023 · 3 comments
Closed

DragSlider not working for Webdriver #3598

Aadilpatni opened this issue Feb 20, 2023 · 3 comments
Labels

Comments

@Aadilpatni
Copy link

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']
}

@autotest-web
Copy link

When using I.dragSlider() method , getting the below error

invalid argument: invalid argument
from invalid argument: 'x' must be an int

@github-actions
Copy link

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Aug 21, 2023
@kobenguyent
Copy link
Collaborator

perhaps fixed by #4123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants