Hi All, getting some errors as shown in serenity-bdd/serenity-core#2634 when trying to execute appium ios testcases on saucelabs with serenity bdd. Can somebody help me on it?
Caused by: org.openqa.selenium.json.JsonException: Expected to read a START_MAP but instead have: END. Last 0 characters read:
Build info: version: '4.0.0', revision: '3a21814679'
Hi All,
Please help me solve an issue. Currently my framework consists of (node v14.17.6, webdriverio, appium, babel, mocha)
I am trying to click on an element of an android app.
But getting an error TypeError: $(...).click is not a function
I have installed @wdio/sync as well, with node v14.17.6
My code was:
describe('It should click on login button', function(){
it('should click frame', function(){
const frame1 = '#co.zip.sandbox:id/exo_overlay';
$(frame1).click();
});
});
The detailed error is as below:
Execution of 1 workers started at 2021-12-21T11:43:36.147Z
[0-0] 2021-12-21T11:43:36.266Z WARN @wdio/utils:shim: You are running tests with @wdio/sync which will be discontinued starting Node.js v16.Read more on https://github.com/webdriverio/webdriverio/discussions/6702
[0-0] 2021-12-21T11:43:36.564Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in co.zip.sandbox - D:\apgsAutomation\specs\clickZip.js
[0-0] TypeError in "It should click on login button.should click frame"
TypeError: $(...).click is not a function
at Context.<anonymous> (D:\apgsAutomation\specs\/clickZip.js:6:19)
at Context.executeSync (D:\apgsAutomation\node_modules\@wdio\sync\build\index.js:38:22)
at D:\apgsAutomation\node_modules\@wdio\sync\build\index.js:69:73
[0-0] FAILED in co.zip.sandbox - D:\apgsAutomation\specs\clickZip.js
Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:05
hi there, while running some tests using webdriverIO and appium against browserstack, I get this error in a random manner (not always but potentially in the same set of tests):
"UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up"
platformName: 'Android',
'appium:platformVersion': '11',
'appium:udid': 'emulator-5556',
'appium:app': join(process.cwd(), `./apps/${appEnv.appName}.apk`),
"appium:automationName": "UiAutomator2",
"appium:waitForIdleTimeout": 500,
"appium:noReset": true,
'appium:newCommandTimeout': 120,
"appium:automationName": "UiAutomator2",
"appium:noReset": true,
'appium:newCommandTimeout': 60,
"appium:fullReset": false
driver.scrollTo
which I don't have
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico?v=2">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" href="plugins/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugins/behaviors/index.js"></script>
<script src="plugins/packages/index.js"></script>
<script src="plugins/screen-diff/index.js"></script>
</body>
</html>
Hi Fellow Appium Users,
I am trying to make my mobile application go through a proxy so that I can have a different ip address. Below are my attempt and it's not working. It's still giving me my own Ip address. How can I make my Android application go through appium server and then go through a proxy server?
// I am using Proxy Manager from BrightData, it allow me to input all my proxies (host:port:username:password) and rotate it automatically.
// Proxy Manager give me a port to use which connect to those rotated proxies
// eventually I just want to use (host:port:username:password) but I don't know how to authenticate correctly
String proxystring = "127.0.0.1:24000";
Proxy proxy = new Proxy();
proxy.setSslProxy(proxystring);
proxy.setHttpProxy(proxystring);
File appDir = new File("src");
File app = new File(appDir, "WhatismyIPaddress_v3.02_apkpure.com.apk");
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(MobileCapabilityType.DEVICE_NAME, "Pixel 3 API 30");
cap.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());
cap.setCapability(MobileCapabilityType.AUTOMATION_NAME, "uiautomator2");
cap.setCapability(MobileCapabilityType.PROXY, proxy);
AndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(new URL("http://127.0.0.1:4723/wd/hub"), cap);