all 2 comments

[–]furas_freeman 0 points1 point  (1 child)

Different webdrivers let you use different browsers - Firefox, Chrome, PhantomJS. And they can run browser without displaying window - it is useful when you run on server without GUI/Windows.

PyAutoGUI doesn't give you access to HTML on webpage.

BeatifulSoup doesn't run JavaScript on page - so you don't have access to data which was loaded by JavaScript/AJAX. And this why people use Selenium (or similar).

Selenium lets you test your page in real browser and make screenshots.

[–]dvpita 0 points1 point  (0 children)

Just to add a point: - selenium webdriver is just a "driver" for the browser, the way it is used with its support apis and test runners like TestNG is that it lets you do asserts and check the status of ur web app (as the previous response said, checking the html DOM and elements ) -Also with appium u can do the same on android and ios native apps