Why do we use WebDriver instead of Selenium IDE?

Sagar

Why can't we just record all of our test cases in Selenium IDE, export it to Java/WebDriver and run it in WebDriver with Eclipse?

I need a clear explanation as I am very much confused in using WebDriver!

And can anyone please explain why IDE recorded scripts fail in WebDriver?

ddavison

why cant we just record all of our test cases in IDE, export it to java/webdriver and run it in webdriver

Great question, and here is the answer:

Selenium IDE is a Record and Playback tool, which is very easy to use, but it's very unreliable. Record and playback is typically a frowned upon in web applications. Since web applications are frequently changed, the IDE is not an ideal solution for a production environment, because of the maintenance nightmare that may arise.

Let me give you a practical example. You record your test, and you find an element with a dynamic ID. Sure we can import it into eclipse, but what happens when that test starts failing down the road? why not simply make your test agile and independent to catch these in the first place.

It also boils down to your principles of test automation. Test automation in MY opinion (and several other professionals), believe that test automation should be approached from a programming perspective. Programmers should write the tests, and maintain the tests. Ideally, your quality assurance personnel should be trained to write and maintain their own tests.

So again, back to your question, the IDE is designed to be a quick solution to automation, NOT a solution to a full regression suite.

And can anyone please explain why IDE recorded scripts fail in Webdriver?

I haven't used the IDE in a while, but the reason they fail, is because the scripts that are exported, are simply the steps, not an entire java file. This also is because Selenium IDE exportations are supposed to be agnostic when it comes to how to run your test. Say I'm a user of jUnit.. what if Selenium IDE exported it to TestNG all the time? That wouldn't be fair.. honestly i'd rather create my own tests than changing that one line every single time i create my test file.

You may read the full text of a research conducted, called Why do Record/Replay Tests of Web Applications Break?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why do we use WebDriver instead of Selenium IDE?

From Dev

While working with Selenium webdriver, why do we use linked list for gathering links or dropdown contents with mutliple matches?

From Dev

In selenium webdriver why we need to set implicit wait to 0 before we use explicit wait

From Dev

Why do we use intermediate languages instead of AST?

From Dev

Why do we use @Echo off/on instead of just Echo off/on?

From Dev

Why do we use CPUs for ray tracing instead of GPUs?

From Dev

Why do we use hex so much, when there are enough letters to use base 32 instead?

From Dev

Why cannot we just use [][] instead of int[][]?

From Dev

Why we should use wiremock instead of Mockito

From Dev

Why cannot we just use [][] instead of int[][]?

From Dev

Can we use Mechanize and Selenium WebDriver together? Ruby

From Dev

Why do we use UserControl?

From Dev

Why do we use @staticmethod?

From Dev

Why do we use setLayoutParams?

From Dev

Why do we use the TaskStackBuilder?

From Dev

Why do we use @staticmethod?

From Dev

Why do we use `$` in a script?

From Dev

Why do we still use HTTP instead of WebSockets for building Web Applications?

From Dev

Why do we use `#include "stdafx.h"` instead of `#include <stdafx.h>`?

From Dev

Why do we use KeyEvent.VK_? instead of simply using the character

From Dev

Where do we use BitSet and why do we use it in java?

From Java

Why do we need to use flatMap?

From Java

Why do we use autoboxing and unboxing in Java?

From Java

Why do we use volatile keyword?

From Dev

Why do we use @Embeddable In Hibernate

From Dev

why do we use tibco mapper activity?

From Dev

Why do we use overflow:hidden;

From Dev

Why do we use ?ver=3.7.1 in themes?

From Dev

Why we do not use barriers in User space

Related Related

  1. 1

    Why do we use WebDriver instead of Selenium IDE?

  2. 2

    While working with Selenium webdriver, why do we use linked list for gathering links or dropdown contents with mutliple matches?

  3. 3

    In selenium webdriver why we need to set implicit wait to 0 before we use explicit wait

  4. 4

    Why do we use intermediate languages instead of AST?

  5. 5

    Why do we use @Echo off/on instead of just Echo off/on?

  6. 6

    Why do we use CPUs for ray tracing instead of GPUs?

  7. 7

    Why do we use hex so much, when there are enough letters to use base 32 instead?

  8. 8

    Why cannot we just use [][] instead of int[][]?

  9. 9

    Why we should use wiremock instead of Mockito

  10. 10

    Why cannot we just use [][] instead of int[][]?

  11. 11

    Can we use Mechanize and Selenium WebDriver together? Ruby

  12. 12

    Why do we use UserControl?

  13. 13

    Why do we use @staticmethod?

  14. 14

    Why do we use setLayoutParams?

  15. 15

    Why do we use the TaskStackBuilder?

  16. 16

    Why do we use @staticmethod?

  17. 17

    Why do we use `$` in a script?

  18. 18

    Why do we still use HTTP instead of WebSockets for building Web Applications?

  19. 19

    Why do we use `#include "stdafx.h"` instead of `#include <stdafx.h>`?

  20. 20

    Why do we use KeyEvent.VK_? instead of simply using the character

  21. 21

    Where do we use BitSet and why do we use it in java?

  22. 22

    Why do we need to use flatMap?

  23. 23

    Why do we use autoboxing and unboxing in Java?

  24. 24

    Why do we use volatile keyword?

  25. 25

    Why do we use @Embeddable In Hibernate

  26. 26

    why do we use tibco mapper activity?

  27. 27

    Why do we use overflow:hidden;

  28. 28

    Why do we use ?ver=3.7.1 in themes?

  29. 29

    Why we do not use barriers in User space

HotTag

Archive