What's the Point of Selenium?

后端 未结 15 1529
孤街浪徒
孤街浪徒 2021-01-30 07:13

Ok, maybe I\'m missing something, but I really don\'t see the point of Selenium. What is the point of opening the browser using code, clicking buttons using code, and checking f

15条回答
  •  清歌不尽
    2021-01-30 08:03

    Selenium will record and re-run all of the manual clicking and typing you do to test your web application. Over and over.

    Over time studies of myself have shown me that I tend to do fewer tests and start skipping some, or forgetting about them.

    Selenium will instead take each test, run it, if it doesn't return what you expect it, it can let you know.

    There is an upfront cost of time to record all these tests. I would recommend it like unit tests -- if you don't have it already, start using it with the most complex, touchy, or most updated parts of your code.

提交回复
热议问题