iframe

Typing in a IFrame with Selenium IDE

安稳与你 提交于 2020-01-01 16:54:50
问题 I'd like to type something in a IFrame with Selenium IDE but I don't know how to do this. Thanks a lot! 回答1: You have to select the iframe and then type selenium.selectFrame("css=iframe.widget[<a_css_identifier>]"); selenium.type(<your_object_or_text_box>, <typed_content>); The statements are in java, but you should be able to find selectFrame and type in the IDE. 回答2: You can use the Selenium IDE command 'selectFrame' to focus within an iframe. Use the Target field to enter the iframe id.

Typing in a IFrame with Selenium IDE

穿精又带淫゛_ 提交于 2020-01-01 16:52:07
问题 I'd like to type something in a IFrame with Selenium IDE but I don't know how to do this. Thanks a lot! 回答1: You have to select the iframe and then type selenium.selectFrame("css=iframe.widget[<a_css_identifier>]"); selenium.type(<your_object_or_text_box>, <typed_content>); The statements are in java, but you should be able to find selectFrame and type in the IDE. 回答2: You can use the Selenium IDE command 'selectFrame' to focus within an iframe. Use the Target field to enter the iframe id.

getting notification when someone comments using comments plugin

北慕城南 提交于 2020-01-01 16:11:07
问题 So I have an iFrame app on a fan page, which includes the comments plugin. Is there a way I/any admin can receive a notification or email every time someone adds a comment? 回答1: You can subscribe to comment.create event and send the notification to admin in any way you prefer, once comment is created. Facebook itself doesn't provide such functionality. This may looks like this (I assume Facebook JavaScript SDK is already loaded on page before doing this, read about it in documentation on

Embedded Youtube: How to get high quality on iOS 7 ipad

前提是你 提交于 2020-01-01 14:34:39
问题 I have an embedded youtube video on a web page. On the desktop it works fine. However, on an ipad (running iOS7) the video quality is rather poor, probably 480p. Inside the iframe it looks fine, but when you make the video full screen it is very noticeable. I have tried using hd=1&vq=hd720 in the querystring and using cueVideoById with a suggested quality of 'hd720' but neither worked. Are there any work arounds either to get higher resolution on the ipad when embedded youtube videos are made

Reload parent page after submit in iframe ( javascript/jquery )

蓝咒 提交于 2020-01-01 14:25:19
问题 i have the same issue on this question.. (wich have no correct answer , i just test all of them) Reload page after submit in iframe (javascript/jquery) What i need is very good explained there, i have a button in form, all this inside an iframe (same domain) and i need to reload parent page, just after the iframe has made the hole submit process, i do not want to "cut" it or interrupt it. thanks UPDATE Keep searching and i found this.. but i cant understand the code in the correct answer, is

Can you beat a frame breaker?

让人想犯罪 __ 提交于 2020-01-01 11:59:32
问题 I haven't been able to find much of an answer yet, so I'm just going to ask. How difficult would it be to stop a frame breaker from working - or even just ignore it? 回答1: As per Jeff's question: As it turns out, your frame-busting code can be busted , as shown here: <script type="text/javascript"> var prevent_bust = 0 window.onbeforeunload = function() { prevent_bust++ } setInterval(function() { if (prevent_bust > 0) { prevent_bust -= 2 window.top.location = 'http://server-which-responds-with

Can you beat a frame breaker?

会有一股神秘感。 提交于 2020-01-01 11:59:12
问题 I haven't been able to find much of an answer yet, so I'm just going to ask. How difficult would it be to stop a frame breaker from working - or even just ignore it? 回答1: As per Jeff's question: As it turns out, your frame-busting code can be busted , as shown here: <script type="text/javascript"> var prevent_bust = 0 window.onbeforeunload = function() { prevent_bust++ } setInterval(function() { if (prevent_bust > 0) { prevent_bust -= 2 window.top.location = 'http://server-which-responds-with

window.top.location vs window.location

独自空忆成欢 提交于 2020-01-01 11:36:09
问题 how to sync window.top.location and window.location? 回答1: This is how you set the parent of the frame ( top ) to the location of the frame document... top.location = self.location; Of course, this code must be executed within the iframe, and is succeptible to the Same-Origin Policy. 回答2: window.top.location is return you to broswer's address bar location even you'r in i-frame or page.. window.location is return location of your current page address in case facebook apps. if you want to top

selenium 找不到元素 (显式等待 和隐式等待的区别)

岁酱吖の 提交于 2020-01-01 11:04:08
selenium自动化页面元素不存在异常发生的原因有一下几点: (1)页面加载时间过慢,需要查找的元素程序已经完成但是页面还未加载成功。此时可以加载页面等待时间。 (2)查到的元素没有在当前的iframe或者frame中。此时需要切换至对应的iframe或者frame中才行。 (3)元素错误。 解决页面加载时间所引起的元素找不到,我们可以为页面设置加载时间。时间的设置分为以下三种: (1)显式等待 显示等待是针对于某个特定的元素设置的等待时间,如果在规定的时间范围内,没有找到元素,则会抛出异常,如果在规定的时间内找到了元素,则直接执行,即找到元素就执行相关操作。 public static void main(String[] args) throws IOException { System.setProperty("webdriver.chrome.driver", "D:/chromedriver_win32/chromedriver.exe"); ChromeOptions Options = new ChromeOptions(); Options.addArguments("user-data-dir=C:\\Users\\happy\\AppData\\Local\\Google\\Chrome\\User Data"); WebDriver driver = new

Microsoft Dynamics CRM Online with a Windows Azure Hosted Webpage + IFrame + X-Frame-Options

亡梦爱人 提交于 2020-01-01 10:27:47
问题 I am trying to use Microsoft Dynamics CRM Online where Windows Azure hosts a custom webpage that is displayed in an IFRAME of the Microsoft Dynamics CRM web application. I have read http://msdn.microsoft.com/en-us/library/gg509061 (Microsoft Dynamics CRM Online with a Windows Azure Hosted Webpage) and also followed the instructions on http://social.technet.microsoft.com/wiki/contents/articles/2590.aspx (Secure Windows Azure Web Role ASP.NET Web Application Using Access Control Service v2.0) I