如何最好的与Selenium Java WebDriver交互Flash [英] How best should I interact with Flash from Selenium Java WebDriver

查看:283
本文介绍了如何最好的与Selenium Java WebDriver交互Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道一堆类似的问题,例如(使用WebDriver交互Flash元素)在过去被问过,但现在还不清楚如何最好的与Selenium的Java WebDriver相关联的页面上的Flash元素进行交互。



默认情况下,我知道它不支持Flash,所以我用它来登录到这个网站是好的。现在,我需要与本页所示的Flash元素交互: / free-tr-4-id /?piid = 34979& pbid = 517639039rel =nofollow noreferrer> http://store.nike.com/us/en_us/product/free-tr-4-id/? piid = 34979& pbid = 517639039



我希望能够从页面左侧的Flash中选择一个鞋号,然后点击添加到购物车按钮。



任何达到此目的的人都可以提供他们的指导和意见。我尝试了 https://code.google.com/p/flash-selenium/

你的问题的答案是:不,您无法使用Selenium WebDriver与Flash 进行交互。完全停止。

我知道有很多开发者需要自动化Flash。但是这从来不是Selenium项目的一部分,也不会被添加进去。您可能需要在 Selenium Users组中漫游。



对于像 flash-selenium < a>和 flex-ui-selenium ,它们不是硒的一部分项目,但由第三方创建,这意味着他们可以很容易因各种原因中止。如果你决定使用它们,你最终可能会开发项目本身,而不是使用它。此外,我还没有意识到与Selenium WebDriver兼容的项目。



另一个可能的解决方案可能是使用 Sikuli ,尽管这不是Flash自动化工具。它应该支持使用独特的图像比较技术来自动化Flash。但再一次,这与Selenium没有任何关系。


I am aware a bunch of similar questions such as (Interact flash elements using WebDriver) have been asked in the past however it is still not clear how best to interact with a Flash Element on a page in association with Selenium's Java WebDriver.

By default I know it doesnt support Flash, so I use it to log onto the site which is fine. Now I need to interact with a flash element as seen on this page :

http://store.nike.com/us/en_us/product/free-tr-4-id/?piid=34979&pbid=517639039

I want to be able to pick a shoe size from the Flash on the left hand side of the page, and then click the add to cart button.

Can anybody who has achieved this please offer their guidance and opinion on the best way. I have tried https://code.google.com/p/flash-selenium/ however this appears to be old, or not compatible with the new Java WebDriver.

解决方案

The answer to your question is: No, there is no way you can interact with Flash from/using Selenium WebDriver. Full stop.

I know there are heaps of developers out there need to automated Flash. But this has never been a part of the Selenium project and it will never be added into. You might want to have a wander around Selenium Users group.

For projects like flash-selenium and flex-ui-selenium, they are not part of the Selenium project but created by third party, which means they can easily be discontinued due to various reasons. If you have decided to use them, you might end up developing the project itself instead of using it. Furthermore, I'm not aware of such projects compatible with Selenium WebDriver anyway.

One other possible solution might be using Sikuli, which is not a Flash automation tool though. It should support automating Flash with its unique image comparison technology. But once again, this has nothing to do with Selenium in any way.

这篇关于如何最好的与Selenium Java WebDriver交互Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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