Got "no browser is open" with chrome.
See original GitHub issueHello, I’m looking a help to solve “no browser is open” issue.
My version is Robot Framework 3.0.4 (Python 3.6.5 on win32). I had set environment variable in my WIN 10 and downloaded the chromedriver to my google folder, but It’s still not work. Please help me to resolve it.
I did another study and found a way, but it confused me if it’s my environment setting issue.
I followed someone’s suggestion to add an new Library, and it worked to open Chrome. However, If I only had Selenium2Library, it will get “no browser is open”
Here is new Library.
from selenium import webdriver
drivers = {
"chrome": webdriver.Chrome,
"firefox": webdriver.Firefox
}
class SeleniumKeywords:
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
def __init__(self):
self.driver = None
def open_browser(self, browser="chrome"):
driver_class = drivers[browser]
self.driver = driver_class()
def go_to(self, url):
self.driver.get(url)
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Fix Chrome if it crashes or won't open - Computer
To fix: Open More More and then Settings. At the bottom, click Advanced and then System. Turn off Use hardware acceleration when available....
Read more >Fix Chrome won't open or launch on Windows 11/10 PC
Fix Chrome won't open on Windows PC · Kill Chrome from Task Manager · Check if your Antivirus is blocking Chrome · Repair...
Read more >Why Won't Google Chrome Open? 4 Ways to Troubleshoot
4 ways to troubleshoot Google Chrome if it won't open on your computer · 1. Press "Ctrl" + "Alt" + "Del" on your...
Read more >[SOLVED] Google Chrome Not Opening (2022) - Driver Easy
1. Boot your PC into safe mode. (Click to see how to enter safe mode in Windows 10, 7, 8, 8.1, XP, or...
Read more >Google Chrome Not Opening: How to Fix? - Techbout
If Google Chrome is not opening on your computer, the problem might be due to an incompatible Extension, Chrome Profile being corrupted and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is a problem in your test. You must call
Open Browser
orCreate WebDriver
keyword before calling other SeleniumLibrary keywords.@Pallaviayalureddy for better help you, please ask in one of the community support channels https://github.com/robotframework/SeleniumLibrary/blob/master/README.rst#support