Questions tagged [appium]

Introducing a cutting-edge open-source automation software designed specifically for seamless testing of both native and hybrid mobile applications.

Encountering a timeout issue with Appium when establishing a connection to the

When using appium to automate a native Android application on a real device, there is an exception that occurs with the OpenQA.Selenium.WebDriverException saying: The HTTP request to the remote WebDriver server for URL timed out after 60 seconds. Upon c ...

Experiencing difficulties while attempting to utilize Appium on Ubuntu, encountering a node.js:134 error

I installed nodejs by using the following command: sudo apt-get install -y nodejs Similarly, I installed appium with the command below: sudo npm install -g appium Despite the warning on the appium page advising against using sudo, I had to use it becau ...

Running two different wdio.config.js files consecutively

Is it possible to run two wdio.config.js files with different configurations, one after another? Here is how the first configuration file is defined in the code: const { join } = require('path'); require('@babel/register') exports.config = { maxInst ...

I encountered difficulty in finding additional elements after selecting a value in the Android Date Picker

https://i.stack.imgur.com/fcrou.pnghttps://i.stack.imgur.com/EwsMH.pngWe are currently in the process of automating a mobile app using Selenium, Appium, and Java. While testing the mobile app (Android), I encountered an issue where after selecting a date ...

Is it possible to split and execute TestNG tests in portions instead of running the entire suite at once?

I am facing an issue with my testng.xml file where most of the tests are failing due to timing problems. However, when I run them in smaller chunks, they work fine. One solution I attempted was dividing the small number of tests into multiple testng.xml f ...

Serenity BDD does not have the capability to capture screenshots using appium

Having an issue with Serenity BDD and the Screenplay Pattern in combination with Appium 1.3.1. The problem is that the project is not generating screenshots for each step, resulting in the report not displaying the captures of the steps. Despite no errors ...

What is the process for identifying the relative x path of a distinctive code?

There are 3 matching nodes with the same source code which is causing the failure: //img[(@src='/PHYLINSPortlet/images/override-0.gif')] <img id="_PHYLINSPortlet_WAR_PHYLINSPortlet_INSTANCE_o3P5_:form_PolicyContent_UI2:Messages:0:j_id1885:0:j ...

Sometimes the instruments fail to execute the send_keys function sporadically. What is the best way to deal with this

The Issue: While using Appium's python client to input text with the send_keys method on a WebElement, Instruments sometimes refuses to tap certain keys. This becomes problematic, especially during login procedures where reliable typing or setting val ...

The `Click()` functionality experiences malfunction in Protractor automation scripts

I am currently automating my tests using Protractor and Appium for an AngularJS website with the Jasmine framework in an iPad simulator. Although the sendkeys() function is working fine for entering the username and password, I am facing issues when clicki ...

Executing a recorded Appium test

Recently, I decided to delve into the world of Appium. After installing the Appium app and adding the simulator app file, I launched the simulator using the "launch" command, following the steps outlined here. I successfully recorded a test on my app and ...

Tips for starting Safari using SafariLauncher on an actual iPhone

After following the tutorial on , I managed to create a project. However, I am now facing difficulties in finding a tutorial for running Appium with a web page. I have made edits to customize it according to my needs, for example, launching google.com whic ...

Unable to execute AndroidDriver on virtual android device using Selenium

Attempting to utilize an Android driver within Selenium has presented a perplexing error that leaves me stumped. I have both an operational Appium Server and an active Android Emulator (from Android Studio) identified as "emulator-5554" when queried with " ...

Strategies for addressing the issue: SessionNotCreatedException occurs when a new session cannot be initiated. This error may be due to an incorrect remote server address

Hi everyone, I'm completely new to using Appium and testing in general. I'm currently experiencing an error that I am unsure how to resolve. Any help would be greatly appreciated. My goal is to test an application on my android studio emulator, ...

Tips for receiving pop-up message notifications when automating a Mobile App with Appium selenium using C#

Upon completion of the timesheet form submission, a success message is displayed along with an ID and other information in a popup that resembles a lightbox on the mobile app. I am interested in extracting this text and saving it in a variable for reporti ...

I encountered an error message while running the Appium code mentioned below

An error occurred while running the main thread. The session was not found. Command duration exceeded timeout: 610 milliseconds. Additional information on the environment - version: '2.53.0', revision: '35ae25b', time: '2016-03-15 ...

Capture images with iPad's camera using Selenium and Appium

I'm currently in the process of automating an iOS application on an iPad using Selenium and Appium. One feature of the app involves opening the default camera application on the iPad, allowing the user to take a picture. The task at hand is to automate t ...

Access to Begin Operation Rejected

While attempting to execute my test through Appium's server, I encountered the following error: Permission to start activity denied The goal was to run the Chrome app without requiring the APK file since it is already installed on my device. appPackage: ...

Error encountered in the main thread: Could not find class definition for org/openqa/selenium/remote/codec/w3c/W3CHttpCommandCodec

An issue occurred in the main thread with the message: java.lang.NoClassDefFoundError: org/openqa/selenium/remote/codec/w3c/W3CHttpCommandCodec Could this error be related to dependencies? I tried searching for solutions on Stack Overflow but couldn't fin ...

Appium's implicit wait feature seems to be having trouble functioning properly

Having trouble with Appium while automating an iOS app. Has anyone encountered this issue before? The implicitlyWait API in Appium doesn't seem to be working for me. I'm using Java and JUnit for running the test, and here's the line of code: driver.manag ...

When conducting mobile browser automation testing using Python and Appium, it is essential to provide URI and package arguments

I am currently facing an issue while trying to automate mobile browser tasks using Python and Appium. Despite providing all the necessary desired capabilities, when I run the script I encounter the following error message: selenium.common.exceptions.WebDri ...

Encountered an error while trying to upload a file to a web application using Chrome through Appium

My attempts to upload a file to through Chrome using Appium have consistently resulted in an ERR_ACCESS_DENIED error. The file I am trying to upload is located in the Download folder on my device. Please see the image below: https://i.stack.imgur.com/w ...

Beginning an electron app that utilizes Main.js as an argument with Selenium

When attempting to open an Electron app using a Main.js argument with either appium or chromeDriver, I am encountering some issues. An example of the command I need to run in CMD is: C:electronExe.exe Main.js My driver setup looks like this: System. ...

Having Trouble Locating UiAutomator2 in Appium for Android with Python?

I keep encountering an error even though I have confirmed that uiautomator2 is installed correctly. It's puzzling to me, perhaps it has something to do with my desired capabilities? In the past, I've used cloud Appium without issues, but this time I am set ...

What steps should I take to obtain more specific test results on AWS Device Farm using Appium and node.js?

When conducting Appium node.js tests on AWS Device Farm, I encounter an issue with the granularity of test results displayed. Currently, all tests are grouped under one "Tests Suite" result, causing the entire suite to fail if even a single small test fail ...

Comparing WinAppDriver and LeanFT

Currently, I am utilizing LeanFT for automating a windows-based application and considering using WinAppDriver to avoid the licensing costs associated with the former tool. Are there any potential drawbacks to switching to WinAppDriver at a high level? M ...

What methods are available for me to apply an assertion specifically on the type of currency

Currently, I am hardcoding currency values like USD and CAD to perform assertions on the type of currency I receive from the application response. While using an XML file to store all currency types for comparison is possible, it seems like overkill for ju ...

List out all the items present in the Selenium Python bindings specific to the Appium framework

As I begin my journey with Appium to test my company's mobile applications, I have decided to use the Python bindings for scripting, starting with Android apps. Successfully running the Appium examples with grunt android, and executing the android.py samp ...

Using Webdriverio and Selenium to implement Basic Authentication within Safari

I have been conducting experiments with a cloud computing service provider named LambdaTest for running Selenium and Appium tests while utilizing webdriverio. All of the company's websites utilize Basic Auth, and it seems like this method will remain ...

Guide to Executing the Appium Selenium Mobile Automation Script on a Different Machine Remotely from the Primary Code Machine

Is it possible to execute the Appium Mobile automation script from one main/coding machine to another machine that has a connected device? I am interested in learning about the required software and prerequisites for running the code on a different machin ...

Steps to obtain context and transition to webview context:

Currently, I am in the process of testing a Windows hybrid application. In order to obtain contexts, I have utilized the following codes. However, upon launching, I encountered an UnsupportedCommandException. Below is the code snippet I am working with: p ...

Can you explain the functionalities of appium, selendroid, and selenium and how they operate?

I am feeling perplexed about the differences between Appium, Selendroid, and Selenium and how they interact with each other. Is there anyone who can assist me in resolving this issue? ...

Are you in favor of incorporating a proxy into your capabilities?

Does Appium offer support for configuring a proxy using a capabilities object? While this functionality is available in Selenium WebDriver, I am encountering issues trying to implement it in Appium. If you want an example of setting up a proxy with WebDri ...

Having trouble locating an element with text while scrolling on an Android emulator

I am currently using Appium desktop server version 1.15, java-client version 7.3.0, and selenium-server version 3.141.59. While working on my android emulator, I encountered a situation where I needed to scroll down to view a specific text and then stop t ...

I am in the process of automating an Android hybrid application with Appium, but I am encountering difficulty when trying to switch to the WEBVIEW

Here are the environment details: The application is built with Cordova Ionic Appium version is 1.4.16.1 Android version is 6 (Nougat) I'm stuck due to an issue with this setup. Can anyone provide assistance to help resolve this problem? Please ...

How many installation packages does Appium require?

Currently, I am in the process of installing the most recent version (1.6.3) of appium using npm. There seems to be an overwhelming number of various packages being downloaded by npm during the installation, and I am uncertain if all of these packages are ...

Error encountered: org.openqa.selenium.WebDriverException - Method not implemented for executing a task on an iOS native element

An error occurs when trying to perform an action (click, clear, send key, etc) on an iOS native element due to the method not being implemented yet. However, the findElement function works correctly. This issue only affects iOS and works fine on Android d ...

Streamline Opera Mini Testing with Appium and Selenium

While exploring methods to test mobile web apps using Appium and the mobile SDK, I came across automation techniques for Opera browser tests. One can utilize Selenium or Appium along with Opera Chrome or Presto drivers (imported libraries) to achieve this. ...

What steps are required to activate the chromedriver_autodownload functionality in Appium?

During my attempt to run an automated test on an Android real device, I encountered an error that stated: Encountered internal error running command: Error: No Chromedriver found that can automate Chrome '83.0.4103'. You could also try to enable ...

Encountering a problem with app configuration when executing Appium code

Configuration Error: @BeforeTest setUp org.openqa.selenium.SessionNotCreatedException: Unable to establish a new session. (Issue: No app selected; make sure to start appium with --app or specify an 'app' value in desired capabilities, or set androidPacka ...

The Function parameter used in the FluentWait Method does not match the expected arguments

Encountering a problem with the until method in appium using selenium webdriver. An error is being thrown: The method until(Function) in the type FluentWait is not applicable for the arguments (new Function(){}) Tried all solutions mentioned in previou ...

Ways to utilize your mobile device: initiate an activity using OptionalIntentArguments

Ever since I updated my Appium dependency to version 9.1.0, I have been facing difficulty in using ((AndroidDriver) driver).startActivity(activity). You can find more information on this issue here: https://github.com/appium/java-client/pull/2036 Prior to ...

Would using a Maven Multi-Module project be beneficial for streamlining automated testing with tools like Selenium, Appium, and Karate?

After setting up a Java Maven project for web automated tests using Selenium, the next step is to dive into mobile automated testing with Appium. Instead of starting from scratch with a new project, I am considering converting my Maven project into a Mave ...

Using Java to rotate an iOS device with Selenium

I am currently facing a challenge that I cannot seem to overcome. My objective is to develop an automated testing tool in Java using JUnit/Selenium along with Appium for testing a website on the iOS simulator (Mobile Safari). The main functionality I aim ...

Appium encountered an error on iOS with the message: "NSCocoaErrorDomain Error Code 260: The file named 'WebDriverAgentRunner-Runner.app' cannot be opened as it does not exist"

While running appium on a real iPhone, I encountered the following error message. Despite searching for a solution, I have not been able to resolve it yet. [XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appiu ...

Is there a method to activate a button labeled with the attribute ignorecase by clicking on it

I need to programmatically click on a button with the text "Settings", ignoring the letter case. Here is my code snippet: WebDriverWait wait = new WebDriverWait(driver, THIRTY_SECONDS); return wait.until(ExpectedConditions.presenceOfElementLocat ...

Users may encounter an issue when attempting to swipe from the bottom to the top on iOS while

I am trying to adjust the wifi status on ios by swiping up from the Control Center located at the bottom of the screen. dimension = driverWrapper.getIosDriver().manage().window().getSize(); int middleX = dimension.getWidth() / 2; int y = dimen ...

Unable to input numerical values using sendkeys in Python Appium

**Hey everyone! I'm facing an issue and need some assistance. I've been trying to input a number into a field of type "NUMBER." First, I locate the element successfully. Secondly, I click on the element (which works fine). Thirdly, when I attempt to enter ...

Unable to execute Appium on another device

Attempting to start the Appium server using the command below: appium --address 185.2.10.159 --port 4723 The IP address belongs to another machine (which happens to be right next to me), and I have a Galaxy S5 connected to it. However, I encountered the ...

Setting Up Appium Webdriverio

Can someone assist me in understanding the process of setting up a testing framework using Appium, Webdriverio, Node.js, and Jasmine? I have already set up my wdio.conf.js file: host: '127.0.0.1', port: 4723, path: '/wd/hub', .... specs: [ ' ...

Unable to start the AndroidDriver

This chunk of code is giving me trouble: WebDriver driver; driver = new AndroidDriver<MobileElement>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); I keep encountering this error: The type org.openqa.selenium.remote.service.DriverServi ...

Is ngwebdriver compatible with Appium for testing iOS applications?

Our team is currently working on a Cordova angular mobile app and looking to implement automation testing. Since we are not well-versed in javascript, we prefer not to use the protractor tool. Is it possible to utilize ngWebDriver with appium and seleniu ...

Verify if the application is installed on the device through programmatic means

Some may argue that this question is duplicated, but I believe it's not. I have installed an app on the emulator and am currently running the following code to check if the app is available. If the app is indeed available, it returns true. See the co ...

Initiate a react change event using Appium

I'm currently working on automating a hybrid app that has a login screen implemented as a react web view, and unfortunately, I don't have control over it. The challenge I'm facing is that the Sign-in button remains disabled until something i ...

Efficient way to navigate through a list in an android app using Appium and Python

Looking for a way to scroll through a list in an Android app using Python? I have a code that works, but it keeps scrolling until it finds the specified element 'India'. However, I only want it to scroll once. self.driver.find_element_by_android_uiautomat ...

Searching for an element by a partial elementId or UID using XPath in Appium

Currently, I am engaged in automating a test for an iOS application. I am utilizing the Appium desktop client (version 1.15.1) on MacOS (version 10.15) to find an element on iPhone 11 (iOS version 13.3) using the Inspector with specific attributes: view th ...

Tips for navigating through a webpage by scrolling

My goal is to automatically scroll down to the bottom of the page and then perform a specific action. With the help of uiautomator, I was able to retrieve the following information: index=2, resource-id=com.manoramaonline.arogyam:id/pager,class=android.sup ...

What is the procedure for printing a list of categories and selecting each category individually in selenium/appium?

How do I print and click on a list of all items such as home top stories, latest news, opinion, etc. in each category, as shown in the image? I tried using the code below but didn't succeed. Can someone please help? List<WebElement> list=driver.find ...

Execute a bash command using Appium

I have a bash script that deletes my temporary files after each test, ensuring a clean slate for the next one. Is there a way to run bash commands or execute a bash script using Appium at the end of every test? Currently, our tests are written in C# - id ...

Can you provide the correct xpath syntax for utilizing the contains text function?

Can you review my xpath code below? By.xpath(".//div[contains(@class, 'foo123') and contains(text(), 'foo bar')]") I am attempting to locate the specified HTML element: <div class="foo123">foo bar</div> Do you see any er ...

Automatically rotate Xcode simulator to landscape orientation on iPhone/iPad using Selenium

After examining the Appium log, it appears that it is indicating landscape mode with the desired capabilities being set as follows: [debug] [XCUITest] Setting initial orientation to 'LANDSCAPE' To achieve this, I am currently using the followin ...

What is the solution when findElement() in WebDriver on Android using Appium cannot locate the element after sendKeys()?

My Android emulator and Appium test are running smoothly. The app launches the correct Activity and enters text into a specific field without any issues. However, when I attempt to locate the same text field in order to verify its content, I receive an err ...

Is there a way for me to streamline the process of logging in using either Google or Facebook?

Is there a way for me to automate the scenario if I'm unable to locate the element using Appium Uiautomator? https://i.stack.imgur.com/Rjji4.png ...

Parallel assessment on android devices

I have successfully set up my selenium grid with appium and created drivers for two different android devices - d1 and d2. Now, I am looking to maintain synchronization between them. This means that the driver should perform operations using d1 and then sw ...

Discovering the XPATH of a pre-defined IWebElement in C#

Currently, I am utilizing WinappDriver/Appium for automating a Windows application project. After initializing a Parent WindowsElement using Xpath, I am now in need to obtain the XPATH of the Parent Element. This will allow me to access the Child elements ...

Appium with Node.js (wd) becomes unresponsive when unable to locate element

Encountering an issue while using appium with nodejs (wd) and mocha, as there is a loading view in the android app (blackbox testing & I'm not the developer) that needs to be waited for its disappearance. Attempted the following solution: wd.addPromiseCha ...

I am struggling to decipher the source code of the IOS driver page

After obtaining the page source with the following code: String pageSource = driver.getPageSource(); I now want to save this XML file locally in the cache. To achieve this, I need to extract element attributes like the values of x and y attributes instea ...

Clear Mobile Safari Browser Cookies on actual IPAD and IPHONE devices with the help of Appium

Having trouble automating Mobile Safari using Appium and Java. Does anyone know how to delete Safari's browser cookies programmatically? ...

Discover the art of shaping Allure's legacy

Is there a way to view the results of my Allure test scripts for Day 1 and Day 2, in addition to those from Day 3, after running them daily? The history tab does not load history data. ...

The session does not support the 'css selector' Locator Strategy Exception error occurred when attempting to locate an instance of EditText using Appium in C#

Successfully opened my app using Appium in C#. Now, on the loginPage, I am trying to retrieve the EditText element in order to input the userName. I have attempted various methods, but they all seem to be causing issues. Here is a snippet of my code: pub ...

Encountering a problem when executing the mobile automation script using Appium

Encountering an issue while running my automation script with Appium. I'm executing a mobile automation script on a Windows Desktop machine with the following software setup: Software Set-Up: 1. Android Studio 2. Appium 3. Mobile/Tablet connected ...

Is it recommended to have a single repository for iOS and Android when creating automation for mobile applications (Native App)?

At the moment, I am utilizing Appium, Selenium, Java, and TestNG for automating a native app. My focus is on iOS and Android platforms, where the functionalities are similar but the element identification process differs between the two. Each element has a ...

The AndroidDriver with AndroidElement type initialized in Appium using the URL "127.0.0.1:4723/wd/hub" and capabilities is failing to function

I am currently learning how to use appium with Java and I have been encountering various issues. A new problem has now surfaced where I am unable to initialize the android driver as it keeps throwing an error. My development setup includes Eclipse, Android ...