[🐛 Bug]: Second driver's discovery logging still misses a debug switch flipped mid-run
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia con #17832, in particolare con le relative Additional Considerations e Implementation Notes, quindi traccia l’inizializzazione di RemoteWebDriver attraverso ChromeDriver/FirefoxDriver, DriverFinder, Selenium Manager e Debug.configureLogger(). Valuta gli approcci elencati usando un secondo driver il cui interruttore di debug cambia durante l’esecuzione. Il lavoro è completato quando il comportamento per quel caso è stato corretto e verificato oppure documentato come limitazione accettata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature and motivation
Follow-up from #17832 (part of the umbrella tracker, see linked issue).
RemoteWebDriver's static initializer (JLS 12.4.2) is guaranteed to run once, before any subclass constructor body — including argument expressions passed to a subclass's own super(...) call, which is where ChromeDriver/FirefoxDriver perform DriverFinder/Selenium Manager discovery logging. #17832 uses that static initializer to make the first driver constructed in a JVM correctly pick up the debug switch for its own discovery logging.
That only covers the first driver. For a second (or later) driver, if the debug switch is flipped between the first and second construction, that second driver's own discovery logging still runs — via its super(...) argument evaluation — before Debug.configureLogger() is reached inside the instance constructor body. Its discovery logging is still missed.
This is not a regression: the gap has always existed on trunk. #17832 narrows it (first-driver case now works) but explicitly does not close it, and flags it as a maintainer call in its "Additional Considerations" section.
Options (not evaluated in depth yet — for whoever picks this up)
- Move (or duplicate) the
Debug.configureLogger()call earlier, intoDriverFinder/Selenium Manager's own discovery-logging call sites directly, so it no longer depends on being reached via any particular constructor's control flow. - Give
ChromeDriver/FirefoxDrivera static initializer of their own (JLS 12.4.2 runs a subclass's static initializer before any instance of it is constructed, but after the superclass's static initializer already ran) that callsDebug.configureLogger()— need to verify this actually resolves the second-driver case and not just duplicate the same first-instance limitation at a different class. - Accept the gap as a known limitation of static-initializer-timing and document it rather than fix it, if no clean fix exists that doesn't complicate driver subclass initialization further.
Related
#12892, #17832 (see its "Additional Considerations" and Implementation Notes items 1–2 for the original writeup of this gap).
- Lingua principale
- Java
- Stelle
- 34.6k
- Fork
- 8.7k
- Merge medio
- 1g 23h
- PR unite (30g)
- 86
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SeleniumHQ/selenium
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
SeleniumHQ/selenium#18323 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
SeleniumHQ/selenium#17843 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[java] DriverFinderTest property fixture doesn't clear/restore selenium.webdriver.verboseForse di nuovo libera @stefanpoia l’ha presa 25 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
SeleniumHQ/selenium#17836 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
A-needs-triaging C-java D-chrome D-firefox I-defect OS-linux
Difficoltà 4/5 1-2 giorni Idoneità per principianti 53/100
SeleniumHQ/selenium#18324 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: [py] Generated bidi.UserAgentClientHints is empty — inline CDDL params drop the commandForse già presa @titusfortner l’ha presa 3 giorni fa. ApertaC-py OS-mac
SeleniumHQ/selenium#18312 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di SeleniumHQ/selenium
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
btraceio/jafar#228 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
jenkinsci/git-client-plugin#1807 ·
-
area-templates triage:bot-seen triage:needs-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/aspire#22356 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Coral-Hive] locate() is typed as STRING instead of INT, so view schemas report a string columnAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
apache/flink-agents#1395 ·
I maintainer di solito rispondono entro 1 giorno