Skip to content

problem with setup Microsoft Edge WebDriver  #168

Open
@Muthres-1

Description

@Muthres-1

from selenium import webdriver
from selenium.webdriver.edge.service import Service
from selenium.common.exceptions import WebDriverException

Path to the Edge WebDriver executable

edge_service = Service(executable_path="C:\Program Files (x86)\Driver\msedgedriver.exe")

try:
# Initialize the Edge WebDriver
driver = webdriver.Edge(service=edge_service)

# Open the website
driver.get("https://www.business-standard.com/markets/stock-companies-list")

# Print the title of the webpage
print(driver.title)

except WebDriverException as e:
print(f"WebDriver error: {e}")
finally:
# Ensure WebDriver is closed properly
driver.quit()

When I trying to run the above code the following bug I am finding please help me
PS C:\Users\hp\vscode\python And LIbraries> python -u "c:\Users\hp\vscode\python And LIbraries\a.py"

DevTools listening on ws://127.0.0.1:49226/devtools/browser/d90cfc01-a867-4a69-a7aa-a4bc5e506916
[23144:22304:0911/003203.928:ERROR:ssl_client_socket_impl.cc(1048)] handshake failed; returned -1, SSL error code 1, net_error -101
[23144:22304:0911/003203.976:ERROR:ssl_client_socket_impl.cc(1048)] handshake failed; returned -1, SSL error code 1, net_error -101
All Listed Companies List in NSE/BSE - India Stock Market

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions