new
new

Reputation: 1159

Can I automate with webdriver an iOS web application from Windows PC?

I have seen on http://code.google.com/p/selenium/wiki/IPhoneDriver that to use selenium webdriver tests on a real device for UIWeb, you need the iphone SDK and a provisioning profile. I want to write my selenium webdriver tests for iphone in Java (Eclipse).

Can i run test cases for ios as from a windows machine?Mac machine is compulsory to run tests? indeed, testers who design tests are used to on Windows and have no knowledge on Mac. Thank you

May I also ask if one can use webdriver to automate native, hybrid ios mobile app?

Once Iphone SDK is checked out from repo, may I run tests with any browser, like safari, firefox, chrome...?

Please help me

Upvotes: 1

Views: 4748

Answers (1)

Andrian Durlestean
Andrian Durlestean

Reputation: 1730

Only solution is Virtual Machine + Hackintosh but is not legal.

  1. Download this
  2. Read guide and install it, if your machine is Intel feel lucky, there are a lot of issues with AMD
  3. Run VM with MacOS and download on it xCode and install it
  4. Get trunk project from checkout from here
  5. Build trunk in xcode
  6. Now it will open emulated Iphone or Ipad (from what you choosed)
  7. Go to emulated iphone and get IP
  8. Run WebDriver app from emulate Iphone
  9. Now run test like that WebDriver driver = new RemoteWebDriver(new URL("yourip/wd/hub"), DesiredCapabilities.iphone());

P.S. I don't remeber all points correctly so good luck

Upvotes: 0

Related Questions