I am getting the error as System.InvalidOperationException: no such element (An element could not be located on the page using the given search parameters.
I am using Appium Studio since this I am working on in IOS using windows machine. At times I am able to locate the element using the same parameter. I have used xpath for finding the element.
Appium webdriver version 1.4.0.3
Please find the stack trace
Result StackTrace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value) at OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByXPath(String xpath) at OpenQA.Selenium.By.<>c__DisplayClasse.<XPath>b__c(ISearchContext context) at OpenQA.Selenium.By.FindElement(ISearchContext context) at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(By by) at OpenQA.Selenium.Appium.AppiumDriver
1.FindElement(By by)
at SampleWork.UnitTest1.TestMethod1() in c:\users\user\documents\visual studio 2015\Projects\SampleTest\SampleWork\UnitTest1.cs:line 28
Result Message:
Test method SampleWork.UnitTest1.TestMethod1 threw exception:
System.InvalidOperationException: no such element (An element could not be located on the page using the given search parameters (XPATH=’//*[@value=‘username’]’))