web scraping - prevent loading shadobox selenium -
Is there a way to stop loading Shadobox when using selenium?
I want to stop loading Shadobox for this website when selenium is used
BusSromani.Cl./Site/
You can
Word-Box:
< P>
Code> & lt; Div id = "shadobox" & gt; Some modal & lt; / Div & gt;
Use JavaScriptExecutor:
"document.findElementById ('shadobox'). Style.display = 'none';"
If that does not work, you have to use the actual javascript function to close it, and then have to execute it. For example:
& lt; Div id = "shadobox" & gt; & Lt; Span class = "right" onclick = "closeShadobox ()" & gt; X & lt; / Span & gt; Some modal & lt; / Div & gt;
Use JavaScriptExecutor:
"Close Shadobox ();"
Comments
Post a Comment