当我试图通过命令窗口(python -m robot users.robot)在Mac中运行我的机器人框架自动化脚本时,出现如下异常:
WebDriverException:消息:无法连接到服务/ usr / bin / safaridriver
任何帮助将不胜感激
Safari版本:12.0
Pycharm版本:Pycharm 2018.2.4(社区版)
*** Settings ***
Resource ../settings.robot
*** Variables ***
${user_profile} css=#dropdownMenuUser > div
${drop_down_menu_user} css=body > app-root > div > div.flexRowStatic > twine-header > div > div > div.flexColumnStatic > ul > li:nth-child(2) > user-icon > div > ul
${role} css=body > app-root > div > div.flexRowStatic > twine-header > div > div > div.flexColumnStatic > ul > li:nth-child(2) > user-icon > div > ul > li:nth-child(3) > a
${sys_admin} css=body > app-root > div > div.flexRowFill.flexColumnContainer > div.flexColumnFill > admin > div > div:nth-child(1) > h2
*** Keywords ***
Click on the user profile icon
Click Element "${user_profile}"
Verify that the user profile pop up menu is displayed
Element Should Be Visible ${drop_down_menu_user}