You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I am using chrome, this is downloading chromedriver to use as the driver. But based on the recent posts for headless in chrome, this should not be required: https://developer.chrome.com/docs/chromium/headless
This issue is seen using the RobotFramework Selenium Open Browser keyword, where specifying chrome is installing chromedriver to cache
def create_chrome_service(log_path):
""" * log_path (String) path to create service * returns {Object} the service class"""
selenium = BuiltIn().get_library_instance('SeleniumLibrary')
from selenium.webdriver.chrome.service import Service
return Service( service_args=[f'--log-path={log_path}'] )
${console_log}= Set Variable ${OUTPUT DIR}/console.log
${chrome_service}= Create Chrome Service ${console_log}${browser_opts}= Set Variable add_argument("--app=https://localhost:${PORT}");add_argument("--window-size=${WINDOW_WIDTH},${WINDOW_HEIGHT}");add_argument("--disable-dev-shm-usage");add_argument("--enable-automation");add_argument("--force-device-scale-factor=1");add_argument("--aggressive-cache-discard");add_argument("--remote-debugging-pipe");set_capability('goog:loggingPrefs', { 'browser':'ALL' })
IF "${BROWSER}" == "headlesschrome"${browser_opts}= Catenate SEPARATOR=; add_argument("--headless=new") add_argument("--window-position=-2400,-2400") ${browser_opts}
END
Open Browser browser=chrome alias=code options=${browser_opts} service=${chrome_service}
@KristinaPlusPlus, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template label.
If the issue is a question, add the I-question label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-* label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer label.
Even if you did not use Selenium Manager, Selenium needs the browser driver to start the browser. This might change in the future when BiDi is adopted across all browsers, but it is not something we are discussing actively right now. If you want to ask more questions, I will leave some links below for you to join our Slack.
What happened?
The newer versions of Selenium come automatically with the Selenium Manager which require the definition of a browser and a driver: https://www.selenium.dev/documentation/selenium_manager/#configuration
If I am using chrome, this is downloading chromedriver to use as the driver. But based on the recent posts for headless in chrome, this should not be required: https://developer.chrome.com/docs/chromium/headless
So, shouldn't selenium manager allow the value of the driver to just be chrome? (https://www.selenium.dev/blog/2023/headless-is-going-away/#what-are-the-two-headless-modes)
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
Python Selenium 4.28.1
What are the browser(s) and version(s) where you see this issue?
Chrome 132.0.6834.159
What are the browser driver(s) and version(s) where you see this issue?
Chrome Driver 132.0.6834.159
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: