Example -1:
Creating script for search in google using robot framework, run on chrome browser.
SeachingChrome.robot
If chrome driver is not installed on your machine, then ‘WebDriver Exception’ throws as you have shown in above image. Then need to set up the chrome driver on your machine.
Configure the Chrome driver
Step 1: Install the browser(chrome) driver from below link
https://chromedriver.chromium.org/downloads
Click on chromedriver.exe file and run.
Output:
Report.html
Log.html
Example - 2:
Creating script for search in google using robot framework, run on Internet Explorer browser.
IESeaching.robot
If Internet Explorer driver is not installed on your machine, then ‘WebDriver Exception’ throws as you have shown in above image. Then need to set up the chrome driver on your machine.
Configure the Internet Explorer
Step 1: Check the selenium version from given command
python -c "import selenium; print(selenium.__version__)"
Step 2: According to selenium version download the IEDriver from the below link.
https://www.seleniumhq.org/download/
Step 3: Keep the IEDriverServer.exe Application in python Folder and Click on IEDriverServer.exe Application and run.
Click on IEDriverServer.exe file and run.
Step 4: Open Internet Explorer
Step 5: Go to Tools menu – Internet Options
Step 6: Select Security Tab
Step 7: In Select a zone to view or change security settings choose Internet and select the check box of Enable protected mode.
Similarly, select the check box of Enable protected mode for other three such as Local Intranet, Trusted sites, and Restricted sites.
Click on Ok Button. Close the Internet Explorer.
Output:
Report.html
Log.html