I use colorbox plugin in my iframe. I would like to open it in parent window when i click a button. But the problem is that it opens in iframe's window. I couldn't find any solution yet. How can i solve this problem?
Assuming these are on the same domain, you can use the parent object in the iframe to open a colorbox in the parent window. (Something like parent.$('#id').colorbox() should work.)
If your iframe is on a different domain, I'm pretty sure you're out of luck due to cross-domain policy restrictions.
Related
I have a difficulties with some content of the web-page when I am trying to discover the element
For example some part of the web-page is blocked by the following:
[data-testid=shell-content]
Any idea what could possibly cause following?
In the browser, the page isn't blocked and (all buttons) can be accessed by the keyboard or mouse.
Tried to upgrade to the lates version, still the same problem.
The problem was described against the iframe, it has to be handled in a similar way in order to access the elements
cy.enter('iframe[data-testid="iframe-content"]').then((getBody) => {
getBody().find('[data-test-id="create-user-button"]').click();
please note that name shell-content could be different to what was name in your project.
I will click on button , it will then popup child window having dynamic URL each time.
Now i need to grab the dynamic URL and place it in cy.visit() and automate the things in child window
I tried in many ways, but couldn't solve the issue
These resources are great, gleb blog filip blog.
With no DOM details shown, you may be able to remove a target attr from the anchor and then click() to visit the link.
cy.get('a')
.invoke('removeAttr', 'target')
.click()
Has anyone experienced problems with using fancybox one a SharePoint page?
I have followed all the instructions and the link opens the iframe with the content but the iframe is opening in one of the divs at the top of the page rather than in the middle of the page.
I have a feeling it is to do with the class of the div as it is called 'Wrapper'.
Does fancybox use 'wrapper' as an explicit value for where the iframe will open? Is this something that I can change as i can't change the div class (that is all set from central admin).
#JFK - thanks for the pointers - turned out to be an older JS file version. I changed that to the latest version and it works perfectly.
I have seen that it is not possible to display any Google page from an iframe. An error message is displayed: cannot display, open in a new window.
I need to login to Google (OpenId authentication) from an iFrame in Joomla (cannot change this). Is there a workaround for this? I thought I could open the authentication page in a new window, and then try to kill that window and reload the original one, but I am not sure I can do that.
Thanks
Well you can just get the form (html code) and put it in your iframe but this will get very messy, for example, there maybe certain JS files that you need to include as well.
Redirecting to Google is best way to implement it.As Using IFrame Sometime does not allowed by some Companies Due to Security.
I can't get access to child iframe content from twist.
I was wondering, but such Sahi code don't executed correctly for me:
browser.execute("$('#buttonid', window.frames['iframeid'].document).click()");
browser.execute("window.frames['iframeid'].document.getElementById('buttonid').click()");
We used 2.4 version of Twist.
Can you tell me what I am doing wrong ?
Sahi should automatically fetch all iframe's or frame's elements.
In normal case browser.click(buttonid) should work. If its not working.
Can you please tell me is the frame or iframe is coming from different domain or its coming from the same domain.