Closed Bug 1139158 Opened 11 years ago Closed 11 years ago

Actions should be available via marionette_driver object

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(firefox40 fixed)

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: njpark, Assigned: bkudryavtsev, Mentored)

Details

(Whiteboard: [lang=py][good first bug])

Attachments

(1 file, 1 obsolete file)

Currently, Actions object is residing in marionette_driver.marionette. So the proper import statement is from marionette_driver.marionette import Actions This should be changed so Actions can be discovered within marionette_driver, along with By, Wait, expected. The import statement should be from marionette_driver import Actions OR from marionette_driver.marionette import Actions,By,Wait,expected
Mentor: dburns
Whiteboard: [lang=py][good first bug]
I would like to work on this bug. Can you assign it to me please?
Assigned. https://dxr.mozilla.org/mozilla-central/source/testing/marionette/driver/marionette_driver/__init__.py will need to have all the module changes added to it. Only added, we dont want to remove anything in this patch so that we maintain backwards compatibility for now
Assignee: nobody → boriskk.work
Should the actions class reside in its own file?
no, I dont think it warrants its own class, at least for now
Importing Actions can be done with from marionette import Actions I am not sure how to make Actions discoverable from marionette_driver without placing it in its own class.
we need to add `from marionette_driver.marionette import Actions` to the __init__.py shown below https://dxr.mozilla.org/mozilla-central/source/testing/marionette/driver/marionette_driver/__init__.py The end result we want is to not do > from marionette_driver.marionette import Actions but rather > from marionette_driver import Actions
Oh. Thanks for the clarification, will do.
Attachment #8584911 - Flags: review?(jgriffin)
Comment on attachment 8584911 [details] [diff] [review] rev1 - bug1139158_marionetteimportchanges.diff Review of attachment 8584911 [details] [diff] [review]: ----------------------------------------------------------------- Thanks; can you add ", r=jgriffin" to your commit message? That's needed in order to land this.
Attachment #8584911 - Flags: review?(jgriffin) → review+
Attachment #8584911 - Attachment is obsolete: true
Attachment #8585806 - Flags: review?(jgriffin)
Comment on attachment 8585806 [details] [diff] [review] rev2 - bug1139158_marionetteimportchanges.diff Review of attachment 8585806 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks!
Attachment #8585806 - Flags: review?(jgriffin) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: