Use selenium-objective-c framework

I want to configure those tests that use Selenium Objective-C . This would allow me to connect to Appium , while recording acceptance tests in the same language in which I am writing the application.

After loading and adding the framework to my project, I added a test target, imported the framework, and ran the tests. I got the expected type errors around NSPoint, NSSizeetc., which are all contained in the library.

After some research, I realized that Selenium Objective-C uses a version of Mac OS Foundation.frameworkthat contains classes NSPoint, NSSizeetc. However, my application is an iOS application, so in Foundation.frameworkmine CGPoint, CGSizeetc.

My question is: could anyone use Selenium Objective-C? If so, how did you achieve this?

Environment: Xcode 5, iOS Simulator 7.0 iPad.

+4
source share
1 answer

The reason you saw these problems is because the Selenium-Objective-C project was used only for Mac. In Mac libraries, NSPoint replaces CGPoint, CGSize -> NSSize

There was not much work to make it work for both, so I just checked the support for building iOS.

https://github.com/appium/selenium-objective-c/commit/c27a5faf266719c87eda502718c90e350aba931e

0
source

Source: https://habr.com/ru/post/1531354/


All Articles