Testing Web Pages With Selenium: Philip H. Schlesinger
Testing Web Pages With Selenium: Philip H. Schlesinger
Philip H. Schlesinger
Introducing PICS
Cobertura
About Me
Since October 2012: Software Development Manager for back-end Java Developers
Whats Selenium
Supported Browsers
12.0.712.0+ 7+
2+
8+
3+
Selenium Methodology
Welcome
Testers
Verify The Loan Calculator Returns Valid Calculations For Several Different Scenarios
Questions?
Philip H. Schlesinger 1.949.936.4508 [email protected] @PhilSchlesinger http://tipsfromphil.tumblr.com/ http://www.linkedin.com/in/philiphschlesinger
Were Hiring!
Our Blog: http://tech.picsauditing.com/ Currently Open Positions: Java Architect Front-End Architect QA Engineer (SDET)
Apply Directly Here (JobVite Link): http://tinyurl.com/hiremeplz
Source: http://stackoverflow.com/a/8186216
Source: http://stackoverflow.com/a/3423347
will do the basic job. To start the Selenium server as part of running your tests with Maven:
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-server</artifactId> <version>2.35.0</version> </dependency>
Source: http://docs.seleniumhq.org/download/maven.jsp
At the time I said I wasnt aware of a way to test a pages look via Selenium, but then I received a tip: 1. Take a snapshot of the correct look of a page via Selenium code 2. Crop at (X,Y) for a certain size A by B
1. This is now your correct snapshot
Take a snapshot of the web page each test Crop at (X,Y) for size A by B Compare the correct snapshot that just-taken-and-cropped snapshot with file size, file hashes, via ImageMagick, or some other methodology
3.