Using Selenium Webdriver Selectors in Appium ios

前端 未结 3 1249
说谎
说谎 2021-01-24 06:41

A project I\'m on is developing a web app at the same time as an ios app (for the same thing) and I\'m hoping to be able to use existing Selenium tests, but we\'re having troubl

3条回答
  •  春和景丽
    2021-01-24 07:05

    How about creating multiple object repositories and loading the relevant object repository based on the underlying platform?
    1. So you need to store locators of both the platforms in separate repositories
    2. Create a Interface / wrapper which would load relevant repository based on the platform on which tests are going to run.

提交回复
热议问题