我应该如何最好地从 Selenium Java WebDriver 与 Flash 交互 [英] How best should I interact with Flash from Selenium Java WebDriver

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

问题描述

我知道一堆类似的问题,例如 (使用 WebDriver 交互 flash 元素) 过去曾被问过,但仍然不清楚如何最好地与页面上与 Selenium 的 Java WebDriver 关联的 Flash 元素交互.

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.

默认情况下,我知道它不支持 Flash,所以我用它来登录网站,这很好.现在我需要与此页面上看到的 flash 元素进行交互:

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

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

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.

任何已实现此目标的人都可以就最佳方式提供指导和意见.我试过 https://code.google.com/p/flash-selenium/ 但是这看起来很旧,或者与新的 Java WebDriver 不兼容.

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.

推荐答案

您的问题的答案是:不,您无法与 Flash from/using Selenium WebDriver 进行交互.句号.

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

我知道有很多开发人员需要自动化 Flash.但这从来不是 Selenium 项目的一部分,也永远不会被添加进去.您可能想在 Selenium 用户组 四处逛逛.

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.

对于像 flash-seleniumflex-ui-selenium,它们不是 Selenium 项目的一部分,而是由第三方创建的,这意味着它们可以容易因各种原因停产.如果您决定使用它们,您最终可能会自行开发项目而不是使用它.此外,我不知道有这样的项目与 Selenium WebDriver 兼容.

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.

另一种可能的解决方案可能是使用 Sikuli,但它不是 Flash 自动化工具.它应该通过其独特的图像比较技术支持自动化 Flash.但再次重申,这与 Selenium 没有任何关系.

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天全站免登陆