如何在 selenium ide 中生成 excel vba 代码
how to generate excel vba code in selenium ide
我正在使用 Selenium IDE 2.9.1(一个 Firefox 插件)来获取网络元素。当我转到选项 > 格式时,我看不到 VBA 代码。有人知道如何获取或设置 VBA 源代码吗?
这是来自 documentation 的信息。这似乎暗示格式 VBA 不是受支持的功能。
Format
Format, under the Options menu, allows you to select a language
for saving and displaying the test case. The default is HTML.
If you will be using Selenium-RC to run your test cases, this feature
is used to translate your test case into a programming language.
Select the language, e.g. Java, PHP, you will be using with
Selenium-RC for developing your test programs. Then simply save the
test case using File=>Export Test Case As. Your test case will be
translated into a series of functions in the language you choose.
Essentially, program code supporting your test is generated for you by
Selenium-IDE.
Also, note that if the generated code does not suit your needs, you
can alter it by editing a configuration file which defines the
generation process. Each supported language has configuration settings
which are editable. This is under the Options=>Options=>Formats tab.
Note
At the time of this writing, this feature is not yet supported by the
Selenium developers. However the author has altered the C# format in a
limited manner and it has worked well.
我正在使用 Selenium IDE 2.9.1(一个 Firefox 插件)来获取网络元素。当我转到选项 > 格式时,我看不到 VBA 代码。有人知道如何获取或设置 VBA 源代码吗?
这是来自 documentation 的信息。这似乎暗示格式 VBA 不是受支持的功能。
Format
Format, under the Options menu, allows you to select a language for saving and displaying the test case. The default is HTML.
If you will be using Selenium-RC to run your test cases, this feature is used to translate your test case into a programming language. Select the language, e.g. Java, PHP, you will be using with Selenium-RC for developing your test programs. Then simply save the test case using File=>Export Test Case As. Your test case will be translated into a series of functions in the language you choose. Essentially, program code supporting your test is generated for you by Selenium-IDE.
Also, note that if the generated code does not suit your needs, you can alter it by editing a configuration file which defines the generation process. Each supported language has configuration settings which are editable. This is under the Options=>Options=>Formats tab.
Note
At the time of this writing, this feature is not yet supported by the Selenium developers. However the author has altered the C# format in a limited manner and it has worked well.