I am trying to get instance of appium webdriver, but ended up getting selenium webdriver instance, below i am sharing what I did
When I print I get selenium webdriver see below
<selenium.webdriver.remote.webdriver.WebDriver (session=“e5145007-a51c-4644-8fd2-01db5e3d92d2”)>
Code:
class IOSTests(unittest.TestCase):
def setUp(self):
# set up appium
app = PATH('../apks/StreetReader.app')
self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:4723/wd/hub',
desired_capabilities={
'platformName': 'iOS',
'platformVersion': PLATFORM_VERSION,
'deviceName': DEVICE_NAME,
'app': app
})
print self.driver
def test_login(self):
print self.driver
CommonWrappers.login(self)
el = self.driver.push_file(media_file, data.encode('base64'))
Error I get:
AttributeError: ‘WebDriver’ object has no attribute ‘push_file’