Hello All,
I am new to Appium. I am trying to automate and Mobile app, where i am unable to identify the hidden element(mean, element is visible only after scroll).
I am trying to get number of tiles present in the screen, currently UI Automator viewer displays only 6 out 8 tiles. rest 2 tiles are displayed only after scroll.
My Scenario is that i have to get the count of number of (tiles) present. Output i get is only 6 where it should have been 8.
kindly let me know how to get the count of all the tiles
Example, bug is a tile. Feature is another tile
With android you cant. You can only count what is visible and add them into some array e.g. by text inside. Scroll and add again unique texts. And thus till end of scroll.
Thank you, Aleksei.
I will try this solution.
I am unable to scroll, to get the list below the code and the exception.
I am using appium with C#
Dictionary<string, string> scrollObject = new Dictionary<string, string>();
scrollObject.Add(“direction”, “down”);
((IJavaScriptExecutor)driver).ExecuteScript(“mobile: scroll”, scrollObject);
Error: Error: System.NotImplementedException: Method has not yet been implemented
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Appium.AppiumDriver
1.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScriptCommand(String script, String commandName, Object[] args)
at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScript(String script, Object[] args)
at Test.Program.Main(String[] args)