Firefox:闪光灯不加载,如果选项卡不活动/窗口最小化 [英] firefox: flash not loading if tab inactive/window minimized

查看:194
本文介绍了Firefox:闪光灯不加载,如果选项卡不活动/窗口最小化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用硒我目前正在自动测试一个网站的Flash元素为用户输入。虽然一切工作正常,当我的计算机在本地执行这些测试时,它无法加载嵌入式闪存,如果我在远程Windows XP机器上启动硒。

但是,如果我开始测试闪存加载正常而我通过远程桌面登录。



这导致我假设没有任何桌面环境加载或用户登录在Firefox窗口被视为就像它被最小化了,或者当前的选项卡是不活动的,我知道阻止flash被加载,直到窗口/ tab被激活。

所以,我现在的问题是:你们有任何想法,如果有一种方法,使Firefox即使目前不在活动窗口中显示加载Flash? ,我找到了一个解决方案:Flash对象的参数wmode必须设置为窗口。它完美地工作。

 < object ...> 
< param name =wmodevalue =window>
< / object>

我只是在我的selenium用户扩展中添加了一个函数来修改该标签的属性,并且每次都运行,闪光灯被访问。



丹尼尔


I have encountered a problem I believe to be related to what's stated in the topic.

With selenium I'm currently automating tests for a website having flash elements for user inputs. While everything works fine when executing these tests on my computer locally, it fails to load the embeded flash if I start selenium on a remote Windows XP machine.
However, the flash just loads fine if I start the tests while I'm logged in via remote desktop.

This leads me to the assumption that whithout any desktop environment loaded or user logged in the firefox window is treated just as though it was minimized or the current tab was inactive, which I know prevents flash from loading until that window/tab is activated.

So, my question now is: Do you guys have any idea if there is a way to enable firefox to load flash even if it's not currently displayed in an active window?

解决方案

Finally, I've found a solution: The Flash object's param "wmode" must be set to "window". It then works flawlessly.

<object ...>
  <param name="wmode" value="window">
</object>

I simply added a function to my selenium user-extensions that modify that tag's attribute and is run every time, the flash is accessed.

Daniel

这篇关于Firefox:闪光灯不加载,如果选项卡不活动/窗口最小化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆