PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

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

Open vsfeedback opened this issue 1 year ago • 1 comments

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.

vsfeedback avatar Nov 21 '24 20:11 vsfeedback

Do we have a status on this issue? All I see is this issue moving around doing nothing.

ukaprch avatar Jan 11 '25 17:01 ukaprch