Thanks Željko again, i am now able to run my existing watir-webdriver
automation on iphone/ipad drivers.

caps = Selenium::WebDriver::Remote::Capabilities.ipad
          caps.platform = 'Mac 10.7'
          caps.version = "5.1"
          caps[:name] = "Testing ipad"

         require 'selenium/webdriver/remote/http/persistent'
          browser = Watir::Browser.new(:remote,
                :url => "http://127.0.0.1:3001/wd/hub";,
                :http_client =>
Selenium::WebDriver::Remote::Http::Persistent.new ,
                :desired_capabilities => caps)

but if i want to change the orientation at run time, i see that
http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver/Remote/Capabilities.htmldoes
not have any option to choose the orientation at run
time. webdriver.DesiredCapabilities has something like 'deviceOrientation'.

do you know how to achieve this when using watir-webdriver ?

Regards
Ragavan

On Wed, Feb 13, 2013 at 12:31 PM, A Ragavan <[email protected]> wrote:

> thanks for your email Zeljko
> I looked at the acceptance code, is it using Saucelabs for iPad/iPhone
> emulators and run the automation on them ?
> Is it possible to run it on a real device or any other emulators ?
>
> we are just starting automation on mobile web front, so sorry if my
> questions are very basic
>
> Regards
> Ragavan
>
>
> On Tue, Feb 12, 2013 at 10:25 PM, A Ragavan <[email protected]>wrote:
>
>> Hi
>> We have been using watir-webdriver/watir-classic as the primary
>> automation framework and it is very useful.
>> Now that more than 50% of traffic is coming from mobile/tablet devices ,
>> I assume whoever using watir will be looking at some other framework to
>> automate their sites in mobile browsers as well.
>>
>> Based on my research, there selenium does off for mobile web automation
>> for iOS/Android, but people who are already using watir has to convert most
>> of their regression suite to selenium.
>>
>> Is there a plan to add this feature into watir so that it could be used
>> to automate sites running on browsers in Android/iOS devices ?
>> I would like to contribute if there is such project going on.
>>
>> Regards
>> Ragavan
>>
>
>
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to