I'm trying to write the Appium automation for Facebook Messenger android app, which will send a message to contact, and i can't find the elements of chat toolbar (textbox, "gallery" and "camera" buttons, etc.) using the Appium Desktop 1.6.2:
Messenger toolbar
The objects tree that I receive doesn't contain those elements:Object tree
I see that there is "parsererror" element at the top of the objects tree - can it be related?
Is there any way to find those toolbar objects or the only way to automate them it to tap by coordinates?
Related
In my flutter application i want to make a feature, when user install my application and long tapped on it,s icon a popup menu appear so that the user can be transferred to specific pages of the application as a shortcut like in Chrome app, like this:
This will help you link
Some of the functionality need platform-specific code and hence you need plugins for that.
I have integrated a Watson Assistant Chatbot into a Wix website using "add > embed > htmliframe"
PROBLEM: when I scroll down the page, the chatbot icon dissapears.
What can I do in order for the chatbot icon to continue being visible when the page is scrolled down?
Would really appreciate some help!
The only UI elements that can be frozen on the screen with the Wix editor are the header and footer.
You can recreate this experience by using either anchor points or other hidden UI elements to show/hide different iFrame elements within the page. By using the viewport enter and leave events, you can show/hide these elements but it won't create the exact seamless experience of a frozen element.
If you can, you can attach it to your footer and then freeze your footer so it will always be sticky at the bottom of your screen.
I am working on UI test automation using Apple's UIAutomation framework for a native iPhone app that uses web views for its checkout transactions. The problem I am facing is that when I tap on Checkout button from the native app, a webview within the app opens up which has a button named 'Complete Checkout' that I am not able to access. I have tried using target.logElemenTree() to get the elements of the WebView, but I do not get to see anything in Instruments. Can anybody let me know how to access webview elements within the native app on iOS?
You can get the X,Y coordinates of the Complete Checkout button and have UI Automation tap it. For example, if the X,Y coordinates of the button are x:10, y:20 you would run target.tap({x:10, y:20});
If your checkout button is a link inside a webview then you will be able to access it.
check the property of the "complete checkout". Tapping using X and Y co-ordinates is not a recommended option.
I'm a newbie in UI Automation using instruments and I have the following question:
- the application starts and I get the mainWindow screen (which contains SignIn and Register buttons)
- I've managed to write the JavaScript code in order to tap one of the two buttons.
-> after tapping one of the buttons, another screen is displayed. let's say the Sign In screen which contains two fields: username and password.
In this case, how can I tell Instruments that this is another screen and this contains another elements that should be retrieved in order to fill the fields and tap the Sign In button ?
I only know to retrieve the mainWindow. I don't know how to write the code for a next screen
Did you try to capture what you do with the small record button in the Javascript editor window? That way you can find out how Instruments can call the elements you use.
See also this thread:
UI Automation - how to capture - record using javascript editor
I have a custom built sign up component that I would like to enhance. I would like to show error messages before sending the data to the server (like "invalid email") using a built in alert system (other than modal) if possible. Is there any on iOS? Do I have to build one myself? I saw that some apps show a grey rectangle near the bottom of the screen, is that custom built?
Thanks!
Check out this code sample if you want to use Tweetbot style notifications in your application, these are non modal
http://blog.mugunthkumar.com/coding/ios-code-tweetbot-like-alertpanels/
All iOS alerts are modal (for now). You will have to build your own if you want different functionality, but it isn't too difficult. You can put together a little UIView with a label that is normally hidden. Then just set the text and show it when you need to.