await driver.touchPerform([
{ action: "press", options: from },
{ action: "wait", options: { ms: browser.isIOS ? 180 : 250 } },
{ action: "moveTo", options: to },
{ action: "release" },
]);
@federico.francia:matrix.org if you are able to scroll using javascript you can use:
window.scrollTo(0, document.body.scrollHeight);
it might save you a few scrolls perhaps
doing something with even value ${i}
)hello, i just updated @wdio/cli
to latest version 7.20.9
and im having some problems with the capabilities:
i have defined an array of 2 capability sets for chrome desktop & mobile, the mobile capability contains an exclude rule to filter out all spec files containing desktop
in the name
exclude: [
'../shared/tests/**/*desktop*.js',
...specificExcludes.chromeDesktopExcludes,
],
but now when i run a spec file like featuredAgencies.desktop.test.js
the mobile capability is also executed, i guess this is coming from https://github.com/webdriverio/webdriverio/pull/8456/files , any idea how can make it ignore the mobile capability when im running a desktop specific test ?
Hi,
I'm running a webdriverio project on a jenkins slave with this following capabilities in webdriverio
I'm getting chrome binary not found error, Kindly help
capabilities: [
{
// maxInstances can get overwritten per capability. So if you have an in-house Selenium
// grid with only 5 firefox instances available you can make sure that not more than
// 5 instances get started at a time.
maxInstances: 1,
//
browserName: "chrome",
acceptInsecureCerts: true
// If outputDir is provided WebdriverIO can capture driver session logs
// it is possible to configure which logTypes to include/exclude.
// excludeDriverLogs: ['*'], // pass '*' to exclude all driver session logs
// excludeDriverLogs: ['bugreport', 'server'],
}
],
and following command in Execute Shell in jenkins configure section
`
function chrome_setup(){
echo "* Starting Chrome Setup *"
if [[ $(dpkg -l | grep google-chrome | wc -l ) -eq 1 ]]; then
echo "package exits. proceeding with test";
else
#Install Dependencies for google-chrome
sudo apt-get update && sudo apt --fix-broken -y install
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb || true
sudo apt install -f ./google-chrome-stable_current_amd64.deb || true
google-chrome --version || true
fi
}
`