I wanted to automate my project, which has three parts:
Web testing
Ipad app
Ios App
I have started with the web testing, by following all the steps on appium.io and installed Appium Server, Appium-python-client, and pycharm professional.
I have created my first test but I was not able to run it. I tried importing
from appium.webdriver.common.desired_capabilitites
but it throws the error:
Cannot find reference ‘desired_capabilities’ in ‘__init__.py’
this is the base case i have
import unittest
from typing import Dict
from appium import webdriver
from appium.options.common import AppiumOptions
desired_caps = {
‘platformName’: ‘Mac’,
‘browserName’: ‘Chrome’,
‘appium:automationName’: ‘XCUITest’
}
options = AppiumOptions()
# options.load_capabilities(desired_caps)
url = ‘http://localhost:4723/wd/hub’
driver = webdriver.Remote(url, desired_caps)
driver.get(“hhtps://www.google.com”)
element = element.send_keys(‘admin’)
driver.quit()
The code driver = webdriver.Remote(url, desired_caps) is asking for a [str,bool] value. How can I use desired_capabilities here?
Source: Read More