Using ProcessManager causes 'BAMF: ImportError("No module named 'Xlib'",)' when trying to write tests which switch between windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopilot (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
unity8 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
What happened:
1) Writing autopilot tests which are dealing with a multi-window application
2) Within a test I need to switch to the second window which is unfocused
3) Using ProcessManager.
4) With this code snippet [2], it works fine on unity7/X11 but when testing on Unity8/Mir it fails with "BAMF: ImportError("No module named 'Xlib'",)" - full traceback [3]
What I expected to happen:
I expected at step 4 when running the test on a non-X11 environment (eg Mir) for autopilot to use the relevant backend to allow for switching between windows.
Not sure if this needs to be fixed in autopilot itself, or whether there needs to be a helper written in unity8/mir so I've added autopilot and unity8 to this bug.
0 - https:/
1 - https:/
2 - http://
3 - http://
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.