I do not get code completion suggestions outside the driver declaration, i am using pycharm 2019.1.3, this is very annoying because i have to go where the driver is declared and write the code there and then copy it to another methods.
Environment
- Appium version (or git revision) that exhibits the issue: 1.15.1
- Last Appium version that did not exhibit the issue (if applicable):
- Desktop OS/version used to run Appium: Mac OS 10.14.5
- Node.js version (unless using Appium.app|exe): 12.11.1
- pycharm version: 2019.1.3
Code To reproduce issue
from appium import webdriver
import pytest
driver = None
@pytest.fixture()
def driver(request):
global driver
url = 'https://medium.com/'
platform_name = "android"
if platform_name == "android":
desired_caps = {
'platformName': 'Android',
'platformVersion': '7.1.1',
'automationName': 'uiautomator2',
'deviceName': '4b64d0f3',
"app": "/Users/hectorjimenez/Documents/XXXX/app-debug.apk",
'FullReset': False,
'NoReset': True,
'newCommandTimeout': 300
}
elif platform_name == "ios":
desired_caps = {
'platformName': 'iOS',
'platformVersion': '12.2',
'deviceName': 'iPhone 8',
"app": "/Users/hectorjimenez/Documents/XXXX/myapp.app",
'automationName': 'XCUITest',
'FullReset': False,
'NoReset': True,
'newCommandTimeout': 300
}
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
driver.implicitly_wait(10)
request.cls.driver = driver
yield
def test():
driver.
![51%20AM|529x500](upload://7gxsmJ4wflwTfIpakVAOXOV5IDq.png)