Category : iframe

WebDriverWait(driver,10).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,’//[@id="dataviscontainer"]/div/iframe’))) span_texts = [item.text for item in driver.find_elements_by_css_selector(‘span’)] print(span_texts) My objective here is to scrape text from multiple span tags which actually are in dropdown list which is inside a iframe & the iframe does not have any name class or id so I used the XPath. After running this code I get an empty ..

Read more

I have SSRS (reporting service), ASP.NET MVC .NET 5 application, Soap API client generated code as a connected service and ajax request. UI ajax request -> MVC application -> Soap API -> SSRS report render -> result as html -> Paste a result to an iframe. I tried next options: $(‘reportBody’).contents().find(‘body’).html(response); document.getElementById(‘reportBody’).contentWindow.postMessage(response, "*"); document.getElementById(‘reportBody’).contentWindow.postMessage("test", "*"); ..

Read more

I’m trying to do a page where the user can add youtube links and the page will display them, but it doesn’t work for some reason, here is my javascript code: function addlink() { var youtubelink = prompt("add your youtube link"); if ((youtubelink != null)&& (youtubelink.includes("https://www.youtube.com/watch?v"))) { document.getElementById("video").src= youtubelink; } else{ document.getElementById("demo").innerHTML = "please introduce ..

Read more

I’ve done it like this, the code is below, I copied the same iFrame many times with different aspect ratios, which show or hide in particular sizes. Is there any better/shorter way to do this? <div class=”container map d-none d-xl-block”><iframe src=”https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2919.353178018696!2d47.4802444157619!3d42.97083340430253!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x404ea15ce9e13f9f%3A0x42eb5720271dadf4!2sUlitsa%20Engel'sa%2C%2030%2C%20Makhachkala%2C%20Respublika%20Dagestan%2C%20367015!5e0!3m2!1sen!2sru!4v1621256990741!5m2!1sen!2sru” width=”1100″ height=”600″ style=”border:2px solid rgb(0, 183, 255);” allowfullscreen=”” loading=”lazy”></iframe></div> <div class=”container map d-none d-lg-block ..

Read more

i got 2 websites both under my control and on the same server. a.com displays b.com in iframe and i am trying to implement http header authentication. Right now what i am doing is making a xmlhttprequest with required headers from a.com to b.com and putting the response to an iframe like this document.getElementById("frame").contentDocument.write(h.responseText); when ..

Read more

My Angular app displays a lot of iframes at a time (16 max at a time to be exact), each containing HTML content – all of these iframes have jQuery imports using the script element, as well as some external font files that might differ between iframes. Although performance is generally good, I noticed the ..

Read more