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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -