Glad you figured it out :)

Feel free to add this as an example of switching to an app frame to the B2G marionette page on MDN

On 02/18/2013 05:28 AM, Roy Collings wrote:
SOLVED!!

I had to dig around in the source code of B2G find this (which seems to be the 
only way to get this info.) ...

After you click the 'send sms' button in the contact, do this:

         sms_app_iframe_locator = ('css selector', 
'iframe[src="app://sms.gaiamobile.org/index.html"]')

         self.marionette.switch_to_frame()
         sms_iframe = self.marionette.find_element(*sms_app_iframe_locator)
         self.marionette.switch_to_frame(sms_iframe)

I tried it and it works - I can now access the elements in the sms app. If 
anyone knows of any docs that give this info (such as the sms iframe locator 
address) please share - you'd be saving me (and probably a lot of other people) 
a LOT of time!



_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to