My application allows for users to upload a picture of themselves. The iOS simulator comes with stock images. How would I go about using one of those stock images for the image upload?
After clicking on the element that allows for users to upload images I receive the iOS popup:
I select "Album" but when using the Appium inspector it does not allow any access to these images, I am not able to select any (as seen in the screenshot)
I doubt if its possible to parse this screen since its already other app: Photos app.
With Appium you can interact only with the app that is signed same certificate as WebDriverAgent. At least its valid for real devices, but since you are not able to parse with Appium Desktop my guess its still the same for simulator.
You might try to use TouchAction/tap by coordinates (less stable, but quick way to go) or have integrate image recognition library, e.g. sikuli in your code (more work, but clearly more stable) to select images in Photos app
Related
Automation of Smart Home devices
To verify smart home devices like end-to-end (from mobile App to smart home devices).
what are the automation framework you suggests.
Mobile App - developed Appium with python and Robot
Product - REST
API calls. Smart Devices - Verification of lights ON/OFF, color
change, etc
Can you please suggest or add any better methods to verify end-to-end.
EG: Image comparison, any other method.
Actually it depends on two things:
1- How the devices are calling each other. And whats is the main controller.
2- Whats you purpose of testing? Testing the devices themselves or testing the functionality of the control panel and softwares?
About CP and softwares:
If the system using API > Of course api-testing is required
If there are a panel and you can access it with browser> Using selenium for desktop and chromedriver for mobile browser
If there are a mobile app, using Appium
etc.
For the system itself, it is completely another field and responsibility of the electronic and robot engineers. And depends on hardwares. But the general way is I/O checking. Means that engineers check the input signal with device actions and vice-versa.
Hope this helps.
I want to integrate a video and text chat for web (python) and mobile (xamarin). The requirement is to make customers able to communicate across platforms i.e mobile to web and vice versa.
Mobile application will be developed using Xamarin technology and the website will be in Python.
Is video supported by both platforms?
Yes it does, check out the vidyo.io Xamarin sample on github - https://github.com/Vidyo/VidyoConnector-xamarin
Note that vidyo.io SDK runs on the client end. That means it will either run on your mobile device (using native libraries or in your case using Xamarin), or in case of web sites it will use javascript. You do not need to integrate vidyo.io SDK on the server side.
On your server, what you will need, is to generate "tokens" whenever your client device or website wants to connect to a video conference.
Since you are using python you can take a look at their sample token generator at https://static.vidyo.io/4.1.16.8/utils/generateToken.py
You can learn more about tokens on their website -
https://developer.vidyo.io/documentation/4-1-16-8/getting-started#Tokens
I have found a very nice algorithm for image classification (https://everypixel.com/aesthetics) and was wondering if its possible to upload image files to the webpage with python. They are using a drag and drop system for the image files. Because the algorithm tags those uploaded pictures, the possibility of automatic upload would be very nice.
Python is just a language and not a framework. This means it is not sufficient to be a web server(something that will accept a request and respond to it).
So you need to use a server like flask to accept the request and implement your algorithm there.To attach a file you need to implement a frontend as well.
I have developed a face recognition software.It detects and identify human faces infront of the connected web camera.Now I need to deploy it in a website.so that,Anyone with a computer should be able to access this service through this website and should be able to perform face detection and identification using the camera in his premises.
Is it possible to integrate python application with website?
Is Django framework is suitable for my work?
Can anybody recommed any tutorials in this direction?
This has got absolutely nothing to do with Django. Django is running in your server, whereas you need to capture image at your client. Therefore it has to do about your front-end and not your back-end.
Traditionally this has been a feature not at all possible. A web browser could not access the client's peripherals and end of story. Flash, activex etc have been workarounds for this.
HTML5 now allows it. Read more on MDN about MediaDevices.getUserMedia().
Unfortunately this is still fresh at the time of writing and is only supported by some browser versions: read more on caniuse.com.
You could use some js library for feature detection such as modernizr.
There is a thread discussing Darwin notifications being sent after a screenshot is taken. Does this apply to websites viewed via Safari? Do the same restrictions apply to PC sytems? Would taking the picture via a Python script in Linux or running Safari in a VM circumvent detection?
if you are talking about this thread, please note that it seems to apply only to the iPhone. there is nothing similar in any decent web browser on any desktop platform (plus, anybody can put a proxy to filter this kind of notification, or create its own browser out of off-the-shelf components).
note that rendering a webpage in a browser is the same as taking a screenshot: the browser needs to know what to render on the screen and how to draw it. this is the purpose of HTML and CSS, to describe what and how to render a page, so the simple fact of downloading the content of a webpage gives enough informations for rendering into whatever you want, be it a screen, a picture saved or a file on disk.