It's not possible to get the Application object of the launched app.

Bug #1233384 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Confirmed
Medium
Unassigned

Bug Description

From the AutopilotTestCase, we have launch_test_application that returns a proxy object for the application. However, with this proxy object we can't tell if the application is active, or get the window of that application.

On the ProcessManager we have ways to get the running application, but only by name. And we might have many applications with the same name of the one we have just launched. The only way I've found to get the right one is to do on the test case:

self.process_manager.get_running_applications()[0]

It would be better if we can get the ProcessManager.Application passing the process id as a parameter. It would be even better if the object that returns launch_test_application has the methods like is_active and user_visible that come from ProcessManager.Application.

Leo Arias (elopio)
Changed in autopilot:
status: New → Confirmed
Changed in autopilot:
importance: Undecided → Medium
Revision history for this message
Leo Arias (elopio) wrote :

We need to get the window of the launched application in order to resize it on the desktop and test what happens when the window has a tablet size, or when the layout changes from portrait to landscape.

This will also come handy when testing things like opening the dialer-app from the address book.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.