Why in WEBVIEW Context the xpath generated by Appium isn't working using iOS simulator? - testing

I want to know why in WEBVIEW Context the xpath generated by Appium isn't working using iOS simulator with java to write our scripts?
Other question is there a way to make the code generated by appium recorder working in our java classes, because for now while we are in WEBVIEW there is no chance with appium we have to take a look into html code to create code.
PS : I have already tried to change the context to NATIVE then turn
back to WEBVIEW_1 but no changes.

Related

Is that possible test flutter apps with WebdriverIO?

Can I test flutter app (for example in apk) using WebdriverIO?
I saw there is a flutter driver for Appium. Is it supported with WebriverIO as well? How is it handled?
Yes you can. You have to use Appium Automation to interact with your Flutter mobile app.
Setup your own WebdriverIO Appium project, or start from a featured boilerplate, as such.
Integrate the appium-flutter-driver into your project and start using it inside your test cases.
LE: Alternatively, you can try SauceLab's Appium-Flutter-Driver implementation using WebdriverIO. See it here.
You can find multiple examples online for configurations. A simple Google search even gives you a full video tutorial on how to setup everything.

Not able to inspect elements inside <ScrollView> for an iOS app with Appium Inspector

We are automating on an iOS mobile application which has been developed with react native. For the automation we have been asked to use Appium tool with Pytest-BDD. Currently we are facing an issue with the while inspecting the Mobile elements with the help of Appium Inspector… As developers already provided the Accessibility Id’s, Accessibility label and other elements props but we are not able to access elements inside (Child elements) using Appium inspector…Is there anyone who has already faced this issue and can help ?Thanks in Advance !!!
Tried Inspecting elements with Appium Inspector

Automate iOS application with amCharts element using Appium or Perfecto

Is it possible to automate iOS native application with amCharts elements using Appium or Perfecto ? [Sample amChart]
Perfecto is just mobile device cloud provider, where you can use Appium: so does not affect the possibility.
It may be tricky to parse amCharts for Appium just as it may be tricky to do so for XCUITest (that Appium use for iOS interactions). Since its Objective C wrapper chances are pretty good, but still you will be able to get only numbers and element position in best case.
I suggest to install appium-desktop, start session with your app and make screen snapshot. If appium won't parse it, you may try do it directly in XCode with XCUITest and maybe you need to add some attributes for parsing via Appium

Appium: How to get current window?

I have Appium 1.4.13
IOSDriver<MobileElement> driver = new IOSDriver<MobileElement>(appiumUrl, desiredCapabilities);
How do I get current window (UIAWindow)? How do I get all elements on that window?
hi Artem appium tool only automates the app not android functionalities so you cant retrieve like home, settings window just like selenium does browser automation not the windows system (for that we use external tools like AutoIt and Sikuli), To retrieve app handles we use getcontextHandles() method to know we are in native app or Web view... hope this helps

Calabash Automation Testing

I am new in Automating the apps for testing Android and i like to advance to this level... I have researched for Appium and Calabash... but knowing the difference pretty complicated.. There are my questions:
1: For Calabash, do we need the source code, i mean can i have APK and give test cases and so on? or do I NEED the source code even if im using the elements from app?
2: I heard i can use the Appium with cucumber, and same question do i need source code for that?
I have researched about it and all i get is for Apple apps... but nothing much for android...
You don't need source code. All you need is apk file, packageName and ActivityName to launch the app.
In Appium framework, all you need is app file (for android it will be simply .apk file).
Source code will be never needed, all elements from UI that you would like to interact with, can be simply get from Appium Inspector.
For both calabash and Appium you don't need to source code. you can automate application using apk file.
Yes you can use Appium with cucumber.
To find object locators of application use calabash console and Android UI Viewer, Appium GUI.