Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

How to block images loading but retain the IMG tag containing path in SRC attribute?

more options

I know setting 'permissions.default.image' with a value of '2' will block the downloading of images. However, this also removes the IMG tag from the page source. Is there a way to retain this, because I want access to the image path in the SRC attribute; for development testing purposes via Selenium.

Thanks.

I know setting 'permissions.default.image' with a value of '2' will block the downloading of images. However, this also removes the IMG tag from the page source. Is there a way to retain this, because I want access to the image path in the SRC attribute; for development testing purposes via Selenium. Thanks.

Tutte le risposte (1)

more options

When I test it interactively, a placeholder is displayed in the page and the <img> is still listed in the Page Inspector. What call are you using to retrieve it in Selenium?