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 devices.

The current context is NATIVE_APP

The same code and device function perfectly on another machine.

DesiredCapabilities cap = new DesiredCapabilities();

cap.setCapability("platformName", "ios");

cap.setCapability("platformVersion", "9.2");

cap.setCapability("deviceName", "ipad");        

cap.setCapability("udid", <my device's  UDID>);     

cap.setCapability("app", "/Users/syscotester/Documents/APP/App.ipa");

WebDriver  driver = new IOSDriver<>(new URL("http://127.0.0.1:4724/wd/hub"),cap);
driver.findElement(By.xpath("//UIAWebView[1]/UIATextField[1]"));

elm.click();

The exception is thrown at the line elm.click();

It was functioning correctly until yesterday, but suddenly stopped working. Please provide assistance.

The stack trace:

Exception in thread "main" org.openqa.selenium.WebDriverException: Method has not yet been implemented (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 25 milliseconds Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03' System info: host: 'TVMATP285575M', ip: '10.155.190.189', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.5', java.version: '1.8.0_101' Driver info: io.appium.java_client.ios.IOSDriver Capabilities [{app=/Users/syscotester/Documents/APP/UOMQASQ.ipa, networkConnectionEnabled=false, databaseEnabled=false, deviceName=Parvathy's ipad, platform=MAC, showIOSLog=true, desired={app=/Users/syscotester/Documents/APP/UOMQASQ.ipa, showIOSLog=true, platformVersion=9.2, platformName=iOS, udid=da85ce3eac13bf4d19b627ee3c1ac02a2b9a2bfe, deviceName=Parvathy's ipad}, platformVersion=9.2, webStorageEnabled=false, locationContextEnabled=false, browserName=, takesScreenshot=true, javascriptEnabled=true, platformName=iOS, udid=da85ce3eac13bf4d19b627ee3c1ac02a2b9a2bfe}] Session ID: 8d5cb461-e7ab-4745-ab6e-1f80d916e34b at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:51) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327) at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMobileElement.java:46) at io.appium.java_client.MobileElement.execute(MobileElement.java:1) at io.appium.java_client.ios.IOSElement.execute(IOSElement.java:1) at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:85) at Tester.main(Tester.java:26)

Answer №1

After encountering issues with Appium, I decided to create a new user account on my MAC. It seemed that the problem lied in the cache not being properly deleted when uninstalling Appium (by moving it to trash after downloading from a dmg file). However, once I set up a new user account and reinstalled everything, the native element started functioning properly.

While this workaround did solve the issue, it was quite cumbersome. If anyone has alternative solutions, please feel free to share them.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Extracting multiple values from a JSON object with an array as the root in Swift 5

As a newcomer in the world of app development, I am embarking on my first iOS project which involves creating a currency table/converter for Ukrainian Hryvna. To populate a TableView with data, I plan to retrieve information from a JSON file accessed throu ...

Can anybody provide information on clearing the CACHE Memory of a browser programmatically with Selenium WebDriver?

Is there a way to clear the browser's CACHE Memory without having to delete Cookies and risk logging out of my account? ...

What is the best way to remove the existing value of an <input> field using Selenium in C#.Net?

When ordering multiple times on a specific website using Selenium in C#.Net, I encountered an issue where the text value is not cleared after clicking on the order button. To ensure that orders can be placed repeatedly, I need to find a way to clear the ...

Struggling to extract information using web scraping in Python, unable to get all the desired data

I'm attempting to extract the follower count from this website http://freelegalconsultancy.blogspot.co.uk/ but haven't been successful in doing so. I've experimented with libraries such as urllib, urllib2, urllib3, selenium, and beautiful so ...

Discovering the right checkbox through Selenium Xpath can be challenging, especially when faced with multiple checkboxes being preselected

I am working on an HTML page that contains 3 checkboxes with accompanying text. The checkboxes are nested within div tags. My goal is to identify and select the checkbox that has the text "Clean". Currently, my XPath expression is targeting all 3 checkb ...

A guide on retrieving information from a table using Selenium in Python

I'm currently working on a project where I need to extract data from a table on a website that spans multiple pages. I'm struggling with understanding how to retrieve all the rows and columns from the table using Python and Selenium. Here's ...

Selenium - Discovering elements within a nested element structure

Combing through the code below: private final String dataRowXpath = "*//div[@ref='eCenterContainer']//div[@role='row']"; private final String nbrCellXpath = "//div[@col-id='tradeCount']//span" List<WebE ...

Do I need to have Java installed to initiate webdriver-manager?

Every time I try to run webdriver-manager start, I get an error message that says "Selenium Standalone server encountered an error: Error: spawn java ENOENT." Do I need to install Java? If so, how can I do this on a Chromebook running Crostini? I would gr ...

Learn the process of showcasing YouTube search API results within a user interface text view

I'm currently working on a project that involves displaying the YouTube search API response in a UI Text View when a button is clicked. I have successfully received the response in the console, but now I need to: 1) Convert it into a JSON response. 2) ...

Can you suggest a different method for performing a mouse hover action on a selenium web element using Java 1.8, Gecko Driver 0.19, and Firefox 56?

I encountered an issue where using Actions resulted in an unsupportedCommandException. I attempted the following: Actions action = new Actions(driver); action.moveToElement(element).build().perform(); driver.findElement(By.linkText("All Actions")).click( ...

Using Selenium to interact with a link's href attribute through JavaScript

New to Java and Selenium, I'm facing difficulties when trying to click on a link with JavaScript in href attribute. Here's the snippet from the page source: href="javascript:navigateToDiffTab('https://site_url/medications','Are y ...

pretending to be a different host name with selenium

My current project involves testing the response time of webpages hosted on multiple backends. These backends are located behind a load balancer, and my domain.com is above them all. I am interested in using python+selenium on these backends, but I need t ...

Challenges encountered with Selenium and Geckodriver when navigating paths

I recently started learning programming and have completed some Python courses. I am trying to apply what I've learned so far. Currently, I am using macOS Sierra and have both Python 2 and Python 3 installed on my machine. Originally, I intended to o ...

Transferring data: switching from php to python, and then from python back to php

Looking to pass a variable from PHP to Python? Here is the code snippet: PHP <?php $item='http://www.google.com'; $tmp = passthru("python test.py ".$item); Python from selenium import webdriver import sys link = sys.argv[1] chr ...

Winium is experiencing difficulty locating the JavaFX element

When working with a Windows desktop application, I rely on UISpy to pinpoint specific elements. Using the AutomationId of an element, my code typically looks like this: WiniumDriver driver = new WiniumDriver(new URL("http://localhost:9999"), option); driv ...

Why is my IEDriverServer typing so slow? Seeking JavaScript solutions

While working with Selenium and IEDriverServer, I have encountered an issue where the keys are being sent to the input at a very slow pace. After conducting some research, many websites recommend ensuring that the Browser and IEDriverServer are of the sam ...

Setting a Timeout using PageFactory in Selenium

When it comes to cleaning up page objects, I am well aware that using [FindsBy] attributes and PageFactory can be a useful approach. Defining properties in this manner can be done as shown below: [FindsBy(How = How.CssSelector, Using = "input[type='s ...

Driver Process terminated - session not initiated: The ChromeDriver version is incompatible with the Chrome version

Encountering a mismatch error when trying to set up the ChromeDriver for running selenium tests in C# results in the chromedriver executable continually running. After adjusting the code to catch the exception and use Driver.Quit(), there is still no impa ...

Having trouble setting up npm package (fsevents) on Mac OS Catalina?

I'm facing an error when trying to run the npm install express --save command. Can someone assist me in resolving this issue? The error message is as follows: > email@example.com install /Users/delowar/Desktop/ytdl/node_modules/chokidar/node_modu ...

Changing a fluid CSS selector into a fixed one

Trying to figure out how to use a dynamic CSS selector in my robot framework test. Is there a way to incorporate regex here? Here is the current selector I am using : #weekend11063281 > a:nth-child(1) Open to any suggestions on how to eliminate the d ...