Closed virt12 closed 8 months ago
@virt12, thank you for creating this issue. We will troubleshoot it as soon as we can.
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.
Thank you!
Can you provide a minimized set of code lines that reproduce the issue? The code you pasted has several lines commented and seems to have external dependencies.
Yes I can. The error comes after this line, so part of code:
`from selenium import webdriver from selenium.webdriver.common.keys import Keys import csv import time import glob import os import pandas as pd import re, os.path import operator from pathlib import Path from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service import numpy as np from selenium.webdriver.edge.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.action_chains import ActionChains import traceback
p="C:/Users/apskaita3/Finansų analizės ir valdymo sprendimai, UAB/Rokas Toomsalu - Power BI analitika/Integracijos/1_Public comapnies analytics/Databasesets/Nasdaq_tradings_Helsinki"
stock_list =[ {"url": "https://www.nasdaqomxnordic.com/shares/microsite?Instrument=HEX185076", "csv_name": f"{p}/FARON.csv","ISIN":"FI4000153309"}
] b=len(stock_list) ind=0 delay = 5
for i in stock_list: ind+=1 csv_name = i['csv_name'] url = i['url'] print(csv_name)
driver = webdriver.Edge()
driver.get(url)`
You still have external dependencies:
p="C:/Users/apskaita3/Finansų analizės ir valdymo sprendimai, UAB/Rokas Toomsalu - Power BI analitika/Integracijos/1_Public comapnies analytics/Databasesets/Nasdaq_tradings_Helsinki"
Can you provide a code snippet that works without external dependencies? Only Selenium?
Are you able to reproduce the issue in Firefox and Chrome?
Can you provide a minimized set of code lines that reproduce the issue? The code you pasted has several lines commented and seems to have external dependencies.
`from selenium import webdriver from selenium.webdriver.common.keys import Keys import csv import time import glob import os import pandas as pd import re, os.path import operator from pathlib import Path from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service import numpy as np from selenium.webdriver.edge.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.action_chains import ActionChains import traceback
stock_list =[
{"url": "https://www.nasdaqomxnordic.com/shares/microsite?Instrument=HEX185076", "csv_name": f"C:Desltp[/FARON.csv","ISIN":"FI4000153309"}
] b=len(stock_list) ind=0 delay = 5
for i in stock_list: ind+=1 csv_name = i['csv_name'] url = i['url'] print(csv_name)
time.sleep(1)
driver = webdriver.Edge()
driver.get(url)`
Sorry, this still has several external dependencies and a CSV file. We cannot triage this.
Hi, @virt12. Please follow the issue template, we need more information to reproduce the issue.
Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.
Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.
Reply to this issue when all information is provided, thank you.
I recommend trying with Firefox or Chrome before adding more information to this issue.
I recommend trying with Firefox or Chrome before adding more information to this issue.
Ok, without dependencies.
`from selenium import webdriver from selenium.webdriver.common.keys import Keys import csv import time import glob import os import pandas as pd import re, os.path import operator from pathlib import Path from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service import numpy as np from selenium.webdriver.edge.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.action_chains import ActionChains import traceback
stock_list =[
{"url": "https://www.nasdaqomxnordic.com/shares/microsite?Instrument=HEX185076"}
] b=len(stock_list) ind=0 delay = 5
for i in stock_list: ind+=1
url = i['url']
time.sleep(1)
driver = webdriver.Edge()
driver.get(url)`
Actually I have tried to use Chrome and Firefox and Edge seemed more reliable.
Another observation, that code crashed after 20 runnings, error appears randomly not each time while running code. Recently, I have updated webdriver, browser ant Selenium itself. Is it webdriver bug itself?
I recommend trying with Firefox or Chrome before adding more information to this issue
I have tried already.
I think I've seen that error in Chrome, so it makes sense to see it in Edge.
The issue is that you are not providing code that can be easily used to reproduce the issue, which the Edge or Chrome folks will require to even have a look at.
I think I've seen that error in Chrome, so it makes sense to see it in Edge.
The issue is that you are not providing code that can be easily used to reproduce the issue, which the Edge or Chrome folks will require to even have a look at.
Could you refer to it, where you saw it in chrome case?
I thought you had already searched in the existing closed issues for "no such execution context". You should find something there.
I thought you had already searched in the existing closed issues for "no such execution context". You should find something there.
It seems webdriver bug?
Issue #13543 shows the same error. I will share the ChromeDriver link so you can report it over there.
Hi, @virt12. This issue has been determined to require fixes in ChromeDriver.
You can see if the feature is passing in the Web Platform Tests.
If it is something new, please create an issue with the ChromeDriver team. Feel free to comment the issues that you raise back in this issue. Thank you.
Issue #13543 shows the same error. I will share the ChromeDriver link so you can report it over there.
So I need move to firefox?
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
What happened?
I have tried to reach website url: stock_list =[
] After this code crashes and getting an errror: selenium.common.exceptions.WebDriverException: Message: no such execution context
How can we reproduce the issue?
Relevant log output
Operating System
Windows 11
Selenium version
4.15.2
What are the browser(s) and version(s) where you see this issue?
Microsoft Edge
What are the browser driver(s) and version(s) where you see this issue?
Microsoft Edge 121.0.2277.128 Stable Channel
Are you using Selenium Grid?
No response