简体   繁体   English

是否可以在没有Firefox的情况下运行和创建Selenium IDE测试用例?

[英]Is it possible to run and create Selenium IDE test cases without Firefox?

I'm using Selenium IDE to occasionally test my web applications. 我正在使用Selenium IDE偶尔测试我的Web应用程序。 However, since Selenium IDE is a plugin for Firefox, and it doesn't exist yet for Firefox 5 (the latest version of Firefox), I cannot run my tests and cannot create new ones. 但是,由于Selenium IDE是Firefox的插件,而对于Firefox 5(Firefox的最新版本)尚不存在,因此我无法运行测试,也无法创建新测试。

Is it possible to use Selenium IDE without an older version of Firefox? 是否可以在没有旧版本的Firefox的情况下使用Selenium IDE?

UPDATE: The currently last version of Selenium IDE works with Firefox 5 (problem solved): http://code.google.com/p/selenium/wiki/SeIDEReleaseNotes 更新: Selenium IDE的当前最新版本适用于Firefox 5(已解决问题): http : //code.google.com/p/selenium/wiki/SeIDEReleaseNotes

If I understand correctly you are asking about the 'recording' feature that the plugin provides. 如果我理解正确,您正在询问插件提供的“录制”功能。 Have a look at the code that it creates (on demand). 查看它创建的代码(按需)。 You can also write that code in a text editor or ide of your choice and then run these tests as part of a test suite in the language that you choose (eg java). 您还可以在自己选择的文本编辑器中编写该代码,然后以您选择的语言(例如Java)作为测试套件的一部分运行这些测试。

This solution requires running the browser(s) you want to test on some test machine/server. 此解决方案要求在某些测试计算机/服务器上运行要测试的浏览器。

The usual answer to your question is "yes, if you know how to patch an XPI file". 对于该问题的通常答案是“是的,如果您知道如何修补XPI文件”。 Firefox plugins declare their minimum and maximum supported Firefox levels in the plugin archive-file, and Selenium takes a conservative approach, only declaring support that has been verified. Firefox插件在插件存档文件中声明其支持的最低和最高Firefox级别,Selenium采用保守的方法,仅声明已验证的支持。 FF5 is very new, and hadn't been. FF5很新,而且还没有。

That said, sometimes there are genuine incompatibilities that need to be repaired. 就是说,有时存在真正的不兼容问题需要修复。 Not often, but sometimes. 不经常,但有时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Maven在Firefox中运行Selenium WebDriver测试用例? - How to run Selenium WebDriver test cases in Firefox with Maven? Selenium IDE 卡在“准备运行测试” - Selenium IDE stuck on “Preparing to run your test” 当我运行Firefox的硒测试以创建用户时,该测试会运行,但我从未在列表中看到该用户 - When I run a selenium test for Firefox to create a user the test runs but I never see the user in my list Firefox版本会影响硒webdriver测试用例。 是什么原因? - Firefox version affects selenium webdriver test cases. What is the reason? 硒测试用例在Firefox中有效,但在Chrome中不可用-无头设置 - Selenium test cases work in Firefox but not in Chrome - Headless Setup Selenium-IDE:在FireFox扩展名中运行.java文件 - Selenium-IDE: Make a .java file run in the FireFox Extension Selenium:将 Firefox webdriver 配置为不在测试模式下运行 - Selenium: Configure Firefox webdriver to not run in test mode 在LInux上使用Firefox运行硒测试 - Run selenium test using firefox on LInux 硒,运行firefox而不在窗口上显示窗口 - Selenium, run firefox without displaying the windows on windows Selenium IDE:无法运行测试用例或切换到命令表 - Selenium IDE: cannot run a test case or switch to the command table
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM