Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #18886 from chirarobert/v1.4_camera_fix
Browse files Browse the repository at this point in the history
Bug 1004963 - Update camera tests
  • Loading branch information
AndreiH committed May 2, 2014
2 parents 7b2b82d + 9c80c1e commit 4a10f41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/python/gaia-ui-tests/gaiatest/apps/camera/app.py
Expand Up @@ -47,7 +47,7 @@ def take_photo(self):
# Wait for camera to be ready to take a picture
self.wait_for_condition(
lambda m: m.find_element(
*self._controls_locator).get_attribute('enabled') == 'true', 20)
*self._controls_locator).get_attribute('data-enabled') == 'true', 20)

self.tap_capture()

Expand Down Expand Up @@ -83,7 +83,7 @@ def tap_switch_source(self):
self.marionette.find_element(*self._switch_button_locator).tap()
self.wait_for_condition(
lambda m: m.find_element(
*self._controls_locator).get_attribute('enabled') == 'true')
*self._controls_locator).get_attribute('data-enabled') == 'true')
self.wait_for_capture_ready()

def tap_toggle_flash_button(self):
Expand All @@ -99,7 +99,7 @@ def wait_for_capture_ready(self):

def wait_for_video_capturing(self):
self.wait_for_condition(lambda m: self.marionette.find_element(
*self._controls_locator).get_attribute('recording') == 'true')
*self._controls_locator).get_attribute('data-recording') == 'true')

def wait_for_video_timer_not_visible(self):
self.wait_for_element_not_displayed(*self._video_timer_locator)
Expand Down

0 comments on commit 4a10f41

Please sign in to comment.