It is my first meeting with Selenium. I didn't know how to start, finally I watched and read a few tutorials. Than I installed the Selenium plugin for Firefox. I was looking for a plugin for Chrome but one plugin I found isn't so useful as this in Firefox.
Than I recorded my first test and exported to a Java class. Hm.. I found six different options of exporting my record to Java code. I can choose one of a few frameworks and type of testing path - local or remote. The plugin allow to generate Java code dedicated for old Selenium libraries bellow 3 version (it is deprecated code in version 2.52) and developing type for future 3rd version of Selenium libraries (WebDriver).
Than I recorded my first test and exported to a Java class. Hm.. I found six different options of exporting my record to Java code. I can choose one of a few frameworks and type of testing path - local or remote. The plugin allow to generate Java code dedicated for old Selenium libraries bellow 3 version (it is deprecated code in version 2.52) and developing type for future 3rd version of Selenium libraries (WebDriver).
I tried all possible combinations except dedicated for TestNG framework.
Finally I can compare some common functionality. Below I present main difference.
Old Selenium | WebDriver |
---|---|
Selenium interface is deprecated and will be removed in 3.x version | |
Supports regular expressions in disabled native mode/td> | Till now I didn't find any way to localise elements by regular expressions by xpath |
All actions are accessible by one interface | Functionality of old interface is available by a few separated classes |
Next my question was, how can I execute a test generated by IDE. Is it possible to run it from maven and what I need to run.
The IDE generated me a simple test class, in which I updated example package path. Class can be executed as unit test. However it is required to have run test environment for pass a test. I found no other way to do it.
No comments:
Post a Comment