Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version of Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.12.0 breaks on Python / Selenium code #8082

Open
vsfeedback opened this issue Nov 21, 2024 · 0 comments
Assignees

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work] [regression] [worked-in:Version 17.11.5]
My python code below worked flawlessly in creating a Chrome window for Gradio using Selenium as a web driver as my online front end for my python project.
With this new release when I'm in debug mode the interpreter just stops dead in its tracks w/o proceeding (see below). I didn't have this problem in the previous release of Visual Studio.
Note: My code will proceed in non debug mode, but this problem won't allow me to debug my project completely as before.

Create new instance of Chrome Browser using Selenium

chrome_options = Options()
chrome_options.add_argument("--disable-extensions")
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
chrome_options.add_argument('--disable-blink-features=AutomationControlled')
chrome_options.add_argument('--start-maximized')
driver = webdriver.Chrome(options=chrome_options)                           <=========== debugger stops (hangs) here w/o proceeding.
# Open a new tab in Chrome
driver.execute_script("window.open('http://127.0.0.1:7860', '_blank')") # Go to gradio.com (local)
# Gradio launches a subprocess on our newly opened Chrome window
#Note: when using debug=True you may experience longer run times on subsequent processing due to thread locks
#demo.launch(debug=True, inbrowser=True)
#demo.launch(inbrowser=True, show_api = False)
demo.launch() 

Original Comments

Feedback Bot on 11/17/2024, 07:10 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants