Reputation: 57
I am new to robot framework python, I am using eclipse RED editor.
*** Settings ***
Documentation Simple example using SeleniumLibrary.
Library SeleniumLibrary
*** Test Cases ***
MyFirstTest
Log Hello World...
FirstSeleniumTest
Create Webdriver chrome executable_path=/Users/ljames/Downloads/chromedriver
Open Browser https:google.com chrome
Close browser
I am seeing following error msg:
TypeError: 'module' object is not callable
I am using mac. how to fix it? "Chomedriver" file exist in the Downloads path mentioned above.
Upvotes: 1
Views: 9761
Reputation: 8322
In addition to what aravinth_2442 has said, you also have a wrong URL as an argument to Open Browser
keyword. It might be just a typo here in your question, but you should correct it as well to:
Open Browser https://www.google.com Chrome
You can see the official documentation here: https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Open%20Browser So make sure, you type correctly the names of browsers, they are case-sensitive.
Upvotes: 0
Reputation: 75
Try changing the driver_name from chrome to Chrome. (Only with Open Browser Keyword, the browser_names are case-insensitive). Make note- Create webdriver keyword is mostly followed by Go to, since you have already created your driver instance.
Upvotes: 1