LEADER 05312nam 2200685 450 001 9910822217703321 005 20200520144314.0 010 $a1-78398-193-8 035 $a(CKB)2550000001317562 035 $a(EBL)1688639 035 $a(SSID)ssj0001399473 035 $a(PQKBManifestationID)11891198 035 $a(PQKBTitleCode)TC0001399473 035 $a(PQKBWorkID)11450561 035 $a(PQKB)11648950 035 $a(MiAaPQ)EBC1688639 035 $a(Au-PeEL)EBL1688639 035 $a(CaPaEBR)ebr10895030 035 $a(CaONFJC)MIL618819 035 $a(OCoLC)881510114 035 $a(PPN)228028396 035 $a(EXLCZ)992550000001317562 100 $a20140719h20142014 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aPhantomJS cookbook $eover 70 recipes to help boost the productivity of your applications using real-world testing with PhantomJS /$fRob Friesel ; cover image by Poonam Nayak 210 1$aBirmingham, England :$cPackt Publishing,$d2014. 210 4$dİ2014 215 $a1 online resource (304 p.) 225 1 $aQuick answers to common problems 300 $a"Quick answers to common problems"--Cover. 300 $aIncludes index. 311 $a1-78398-192-X 311 $a1-306-87568-4 327 $aCover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with PhantomJS; Introduction; Installing PhantomJS; Launching the PhantomJS REPL; Running a PhantomJS script; Running a PhantomJS script with arguments; Running PhantomJS with cookies; Running PhantomJS with a disk cache; Running PhantomJS with a JSON configuration file; Debugging a PhantomJS script; Chapter 2: PhantomJS Core Modules; Introduction; Inspecting the version at runtime; Managing cookies with the phantom object 327 $aSpecifying a path for external scriptsSetting up a global PhantomJS error handler; Controlling the exit status of a PhantomJS script; Inspecting command-line arguments; Inspecting system environment variables; Saving a file from a PhantomJS script; Reading a file from PhantomJS; Creating a custom module for PhantomJS; Loading custom modules in PhantomJS; Chapter 3: Working with webpage Objects; Introduction; Creating a web page instance in PhantomJS with the webpage module; Opening a URL within PhantomJS; Generating a POST from PhantomJS; Inspecting page content from a PhantomJS script 327 $aIncluding external JavaScript on the pageRecording debugger messages; Simulating mouse clicks in PhantomJS; Simulating keyboard input in PhantomJS; Simulating scrolling in PhantomJS; Simulating mouse hovers in PhantomJS; Blocking CSS from downloading; Causing images to fail randomly; Submitting Ajax requests from PhantomJS; Working with WebSockets in PhantomJS; Chapter 4: Unit Testing with PhantomJS; Introduction; Running Jasmine unit tests with PhantomJS; Using TerminalReporter for unit testing in PhantomJS; Creating a Jasmine test runner for PhantomJS and every other browser 327 $aRunning Jasmine unit tests with GruntWatching your tests during development with Grunt; Running Jasmine unit tests with the Karma test runner; Generating code coverage reports with Istanbul and the Karma test runner; Running Jasmine unit tests with Karma and PhantomJS from WebStorm; Running QUnit tests with PhantomJS; Running Mocha unit tests with PhantomJS; Chapter 5: Functional and End-to-end Testing with PhantomJS; Introduction; Running Selenium tests with PhantomJS and GhostDriver; Using WebdriverJS as a Selenium client for PhantomJS; Adding Poltergeist to a Capybara suite 327 $aTaking screenshots during tests with PoltergeistSimulating precise mouse clicks with Poltergeist; Installing CasperJS; Interacting with web pages using CasperJS; End-to-end testing with CasperJS; Exporting test results from CasperJS in XUnit format; Detecting visual regressions using PhantomCSS; Chapter 6: Network Monitoring and Performance Analysis; Introduction; Generating HAR files from PhantomJS; Listing CSS properties; Generating an appcache manifest; Executing a simple performance analysis; Executing a detailed performance analysis 327 $aExecuting a YSlow performance analysis with a custom ruleset 330 $aA task-based guide that provides solutions to real-world test automation problems. This book is intended for web development professionals who want to integrate PhantomJS into their development and testing workflows. If you are a web developer looking to run automated unit tests while you work, or perhaps you are a QA engineer looking for a fast test automation utility, then this book is perfect for you. Some prior knowledge of JavaScript would be helpful. 606 $aWeb site development 606 $aWeb sites$xDesign 606 $aInternet programming 615 0$aWeb site development. 615 0$aWeb sites$xDesign. 615 0$aInternet programming. 676 $a006.7 700 $aFriesel$b Rob$01659882 702 $aNayak$b Poonam 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910822217703321 996 $aPhantomJS cookbook$94014759 997 $aUNINA