Closed safo-bora closed 3 years ago
Did you provide defaultCookies
as cookies
to the capability?
https://github.com/appium/appium-for-mac/blob/2356957dc73b6275262c918ca8f4184ef4a25af0/examples/dock_demo.py#L26
Btw, get_log
error is expected since this driver haven't provided the command for now.
oh sorry, yes I have added cookies, but see the same error _selenium.common.exceptions.WebDriverException: Message: Could not find selector (postlog:data:) for path '/session/cCNRBVvQ/log'.
from appium import webdriver
defaultCookies = [
{'name': 'loop_delay', 'value': 1.00},
{'name': 'command_delay', 'value': 0.100},
{'name': 'implicit_timeout', 'value': 3.000},
{'name': 'mouse_speed', 'value': 50},
{'name': 'screen_shot_on_error', 'value': False},
{'name': 'global_diagnostics_directory',
'value': '~/Desktop/'}
]
desiredCapabilities = {"implicitly_wait": 30,
"platform": "Mac",
"platformName": "Mac",
"deviceName": "Mac",
"app": "Stickies",
'cookies': defaultCookies}
driver = webdriver.Remote(command_executor='http://127.0.0.1:4622/wd/hub',
desired_capabilities=desiredCapabilities)
logs = driver.get_log('driver')
Since this module does not support the command. We can add 'server' https://github.com/appium/appium-mac-driver/pull/49 log to return Appium server log, but other logs we should add.
I've added #49 Please create a new issue for a new request
AppiumForMac doesn’t provide driver logs, 'global_diagnostics_directory' folder is also not created.
Environment:
Code:
Expected: See logs about the AppiumForMac session.
Result: