Closed Bug 1027655 Opened 10 years ago Closed 9 years ago

During edge scroll, calling self.apps.switch_to_displayed_app() loses context

Categories

(Remote Protocol :: Marionette, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: njpark, Unassigned)

Details

(Whiteboard: [affects=webqa])

STR: run following code will cause error saying 'press' call was not made in the marked line: def test_that_app_can_be_launched_from_cards_view(self): displayed_frame = self.apps.displayed_app.frame action = Actions(self.marionette) action.press(displayed_frame,0,100) x = 0 while x < 50: action.move_by_offset(4, 0) action.wait(0.01) x += 1 action.perform() self.graphics.invoke_screen_capture() here-> action.release() action.perform() invoke_screen_capture() call is defined as follows: def invoke_screen_capture(self,frame=None,browser=None): self.marionette.switch_to_frame() # switch to root frame (system app) self.marionette.execute_script("window.wrappedJSObject.dispatchEvent(new Event('home+sleep'));") self.apps.switch_to_displayed_app() time.sleep(6) # for the notification overlay to disappear Workaround: After the invoke_screen_capture() call, if the context is set back to the system frame by calling self.marionette.switch_to_frame(), then everything works well. I think the loss of context is caused by calling self.apps.switch_to_displayed_app() while the release action is not done, hence in the middle of switching apps. mdas suggested to log the issue since this is not by design.
Whiteboard: [affects=webqa]
Closing as these bugs are not currently relevant. We can reopen if the issue happens on Fennec.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.