question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Got "no browser is open" with chrome.

See original GitHub issue

Hello, 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:closed
  • Created 5 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
aaltatcommented, Jun 6, 2020

There is a problem in your test. You must call Open Browser or Create WebDriver keyword before calling other SeleniumLibrary keywords.

0reactions
aaltatcommented, Jun 14, 2020

@Pallaviayalureddy for better help you, please ask in one of the community support channels https://github.com/robotframework/SeleniumLibrary/blob/master/README.rst#support

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found