1. U have to create keyword in your python file like this:
@keyword('SET CHROME OPTION')
def create_driver():
profile_val = {"password_manager_enabled": False}
prefs_val = {"credentials_enable_service": False, 'profile': profile_val}
chromeOptions = webdriver.ChromeOptions()
prefs = {"credentials_enable_service": False, 'profile': { // to handle save password popup
'password_manager_enabled': False
} }
chromeOptions.add_argument("disable-infobars") // to suppress "Chrome is being controlled by automated test software" info line
chromeOptions.add_experimental_option("prefs",prefs)
return chromeOptions
then call this keyword in your robot file like this:
Create Browser Chrome
${chrome_option}= SET CHROME OPTION
Create WebDriver Chrome chrome_options=${chrome_option}
:Try this it will definitely help you :)