{"_id":"@4c/selenium-sandbox","_rev":"22-25cc5f3d641d6a95b9b90e8e911d3b17","name":"@4c/selenium-sandbox","dist-tags":{"latest":"0.2.3","next":"0.1.2-alpha.1"},"versions":{"0.1.0-alpha.1":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.1","main":"lib/index.js","module":"es/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","scripts":{"babel":"babel src --ignore **/__tests__ --delete-dir-on-start -x .js,.ts,.tsx","build:types":"tsc --outDir lib","build":"yarn babel -d lib && yarn build:types","prepublishOnly":"yarn run build","tdd":"jest --watch","test":"yarn lint && jest","testonly":"jest","eslint":"eslint . --ext .js,.ts,.tsx","prettier":"prettier --ignore-path .eslintignore '**/*.{json,css,md}'","import-sort":"import-sort '**/src/**/*.{js,ts,tsx}' '!**/__generated__/*' '!**/*.d.ts'","lint":"tsc --noEmit && yarn eslint && yarn import-sort --list-different && yarn prettier --list-different","format":"yarn eslint && yarn import-sort --write && yarn prettier --write"},"publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"extends":["@4c/semantic-release-config"]},"devDependencies":{"@4c/babel-preset-4catalyzer":"^4.1.1","@4c/jest-preset":"^1.3.0","@4c/semantic-release-config":"^1.0.2","@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-typescript":"^7.1.0","@types/node":"*","@typescript-eslint/eslint-plugin":"^1.1.1","babel-core":"^7.0.0-bridge.0","eslint":"^5.12.0","eslint-config-4catalyzer":"^0.7.0","eslint-config-4catalyzer-jest":"^1.1.0","eslint-config-4catalyzer-typescript":"^0.10.1","eslint-config-prettier":"^4.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"^3.0.1","husky":"^1.1.2","import-sort-cli":"^5.2.0","import-sort-style-4catalyzer":"^4.3.0","jest":"^24.0.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.5.0","travis-deploy-once":"^5.0.0","typescript":"^3.2.2"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"gitHead":"72304be9b4bd013e0d7b7b7add9382d5fe736497","description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.1.0-alpha.1","_npmVersion":"6.5.0","_nodeVersion":"10.3.0","_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"dist":{"integrity":"sha512-lHBekdS+Il1ouJT/8fOHNL0p5gfX9Fs1QIrlmb+QcdvZs6T+Z0HBO/napPB474NwMEgSzXlaucS2jloOiAtOGg==","shasum":"d9a0f0ba2d437ad380ed937ed912ce495c87c814","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.1.tgz","fileCount":33,"unpackedSize":392093,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVhnQCRA9TVsSAnZWagAAVVAP/2pZGgMj/Ypd9mN69XhY\n0nNDONniS043of8oTqanqdCly3vjwYhtycvCDB4zpB7BvCWlMCDEjWSnGEzq\ntLh+0W7qwbpD8ZzaJmwmzNy7/056aKX1RIvuRucmIwWWz6QgApOpK2wxo3oC\nIYhAeDzLh11M2kT1F8HCAgf1KMNv6yrGNuSvs2FKRnzBYsNBHbpIEgMLviQN\nFgNnaxCPsuYdFgji8xS5Xd+0GWGgwQEWQuPDo8OjhfAABEndGP6F/6/Hpj77\nqxYueg3dtZDelj8Xdze8FeKktvnUT7R/t7dm8YfxWrX/IrFH8a16E3+/1f5v\n5UjeDgAlplbHc7BE4MXnzd9qsFeqgyWUH1msp5dSl152pfvnGWeYfKBtSE85\nxmIGmhBIElFc7DhvTZj2C1dyMnZay0744O/U8Ra2vwN/PcYdLECSIo2db8qh\n08WBHJcWiseB/tvU0N/kTToTN7cYteHPN5ktnhyvGPYyXQuaT1/q5ho8trGk\nU2vhFaC9VHyUg43YfxS+qga4sDuQA07WHd5QpxacblBcg+3LUXEgazopokRN\nXr148va/FjL+7K09pgEFE4RKLJ9yO3UtnCV3ZetyAPcDdMXuvemF4PL8uKyB\nanGMW3EwIHrwHdfWgi5VfUPrHoILDxIpWG0hb1uDBUi5BqjFuhKY1uvVol+u\niI2y\r\n=sTts\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID1QzzRxivBmk3LGRvIxMd+doAhhcqsr4ob8R/jmxyYPAiEAzggml7+NiyN2jB3y/4fJ+7ewRe7YR/hY7Sps634VdPE="}]},"maintainers":[{"name":"taion","email":"tesrin@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"itajaja","email":"giacomo.tag@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.1_1549146575512_0.5783034009410473"},"_hasShrinkwrap":false},"0.1.0-alpha.2":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.2","main":"lib/index.js","module":"es/index.js","repository":{"type":"git","url":"https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","scripts":{"babel":"babel src --ignore **/__tests__ --delete-dir-on-start -x .js,.ts,.tsx","build:types":"tsc --outDir lib","build":"yarn babel -d lib && yarn build:types","prepublishOnly":"yarn run build","tdd":"jest --watch","test":"yarn lint && jest","testonly":"jest","eslint":"eslint . --ext .js,.ts,.tsx","prettier":"prettier --ignore-path .eslintignore '**/*.{json,css,md}'","import-sort":"import-sort '**/src/**/*.{js,ts,tsx}' '!**/__generated__/*' '!**/*.d.ts'","lint":"tsc --noEmit && yarn eslint && yarn import-sort --list-different && yarn prettier --list-different","format":"yarn eslint && yarn import-sort --write && yarn prettier --write"},"publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"extends":["@4c/semantic-release-config"]},"devDependencies":{"@4c/babel-preset-4catalyzer":"^4.1.1","@4c/jest-preset":"^1.3.0","@4c/semantic-release-config":"^1.0.2","@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-typescript":"^7.1.0","@types/node":"*","@typescript-eslint/eslint-plugin":"^1.1.1","babel-core":"^7.0.0-bridge.0","eslint":"^5.12.0","eslint-config-4catalyzer":"^0.7.0","eslint-config-4catalyzer-jest":"^1.1.0","eslint-config-4catalyzer-typescript":"^0.10.1","eslint-config-prettier":"^4.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"^3.0.1","husky":"^1.1.2","import-sort-cli":"^5.2.0","import-sort-style-4catalyzer":"^4.3.0","jest":"^24.0.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.5.0","travis-deploy-once":"^5.0.0","typescript":"^3.2.2"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","licenseText":"MIT License\n\nCopyright (c) 2019 4Catalyzer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@4c/selenium-sandbox@0.1.0-alpha.2","dist":{"shasum":"e7b79d94504afb0f4e4278325b53f1f35e8e3d8f","integrity":"sha512-gEmlMJkbggPsvn+Dkvo48wL1HLEbbRED5FQbYaG8hx33ZT20BrdXdszOsn5cqref4TXK3X6DD9hfutKljf5XRQ==","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.2.tgz","fileCount":23,"unpackedSize":17846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVh2GCRA9TVsSAnZWagAATDcP/iaZlFmm4dvBVTG/H+v7\nKoo3ZiubAMUJWYFSMDrq7AgYBEosEMIF4aka17isWOZ2k16GWftUhnVTG0ks\nYZdl17baVHk53pdtPO1zOT7+xWoRqduop2X4212Fj+lWYqP+mAhF229wiOk1\nTSuK2lr+IYe4DsFLf4o0UOg2jcA54Hl+o31EzWCeCowKzsRDPE372ciwby7X\n6ea4ffsVaCbjw2VJVMSH7lRli0PDLm0HJLGqqLMY9H5miU4Q8MzSCoKsAaqa\nK61lzi4CyJOWRTgb1+L4UEytZBd/QHuT5TUjbqu0u47iHFalqUjuMDbVo504\nLBibVjiBJ58aX4CiiKpOdPPWd1IfXrmSYlU7PW7iTw2bh3OoQrrdWnSMQ8IY\n6cfScdAtN2hEvd5XTqmub801OSBU9ebu1WRO+vDTYz0eZlPysb2uV85dDk+G\nLHFc4+E0wpaeQ/ycL7iyTBP/84a6QU9xCO+QT3r1vPcGdrIT17HAUXpHduwr\nE0FUhLKYCpbzSHRCa/M7mtPwNm5izFEtspXKWbUdZqYmhPM7/gljedlbqTTW\nhenqPFFYrzvDBqVlBxTQEDrkPuQJ/QV1mQS5YSQb/s8xI+BmFdAz1NInBA8K\nRL+j447RNgR60om1U+dTV2yfrvlooDwx0tZC+UR37NAcw4Iz46eF+fnjc0mC\ntMuM\r\n=9mRu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn/0R/DsOn2g+iWBZEkZKMeL9+if+AXC2wrwqXCSaWRAIgTzEJsVlz9aIggfmiEr1E7Jg+To/KaTZr1TSHr1zCUAs="}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.2_1549147526338_0.19537290423672937"},"_hasShrinkwrap":false},"0.1.0-alpha.3":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.3","main":"lib/index.js","module":"es/index.js","repository":{"type":"git","url":"https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","scripts":{"babel":"babel src --ignore **/__tests__ --delete-dir-on-start -x .js,.ts,.tsx","build:types":"tsc --outDir lib","build":"yarn babel -d lib && yarn build:types","prepublishOnly":"yarn run build","tdd":"jest --watch","test":"yarn lint && jest","testonly":"jest","eslint":"eslint . --ext .js,.ts,.tsx","prettier":"prettier --ignore-path .eslintignore '**/*.{json,css,md}'","import-sort":"import-sort '**/src/**/*.{js,ts,tsx}' '!**/__generated__/*' '!**/*.d.ts'","lint":"tsc --noEmit && yarn eslint && yarn import-sort --list-different && yarn prettier --list-different","format":"yarn eslint && yarn import-sort --write && yarn prettier --write"},"publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"extends":["@4c/semantic-release-config"]},"devDependencies":{"@4c/babel-preset-4catalyzer":"^4.1.1","@4c/jest-preset":"^1.3.0","@4c/semantic-release-config":"^1.0.2","@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-typescript":"^7.1.0","@types/node":"*","@typescript-eslint/eslint-plugin":"^1.1.1","babel-core":"^7.0.0-bridge.0","eslint":"^5.12.0","eslint-config-4catalyzer":"^0.7.0","eslint-config-4catalyzer-jest":"^1.1.0","eslint-config-4catalyzer-typescript":"^0.10.1","eslint-config-prettier":"^4.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"^3.0.1","husky":"^1.1.2","import-sort-cli":"^5.2.0","import-sort-style-4catalyzer":"^4.3.0","jest":"^24.0.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.5.0","travis-deploy-once":"^5.0.0","typescript":"^3.2.2"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","licenseText":"MIT License\n\nCopyright (c) 2019 4Catalyzer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@4c/selenium-sandbox@0.1.0-alpha.3","dist":{"shasum":"f870a42476e0ad2db10ecb54dfafb5f9e41057b0","integrity":"sha512-IZUSClTOPDq4oJ54PFfT3Xi0l3C4xaH0tq74/r9oCIlAEYGuT34qpjLKTRhVAkpaXgVZrMzNfyhuIy7JP1ubdw==","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.3.tgz","fileCount":23,"unpackedSize":17872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcViRiCRA9TVsSAnZWagAAGLEP/iEUS7yttCUKskUMmYIL\nmDm9kTo3cpAAwa1RfJRTSBJD+O154lJMflHc7Mu9TOi9zKNXMliRNkr58zKH\nE/OOXSTsQYSQp3LLPrpQEo+68GgNgylPftepKrBemJf7R3TPKr87zvfzXVYn\nanYIUeircgR8ZYEDszA8jMCGyn4iVpr+1HCaIa6YjM0CRoUZBrF5xGB0sAID\nMGKiBR85u6hant8Bj0Crj2ntpW/opfm6PtP265+tG6YZtfJ4b590foOP2I48\nXm347fuAz9K9l0avvqLij+lZrsY4R8ykucatphorD00iz2TwjXpE0K/I23bD\nrEoAzPQOab3ibkynZyWPwX8dCOUKCUZvGMF/Sn0vgfrrQ7sBooUP4Jjuy9Hq\nfQr0dOZqMvcD+BO0ROLCV6idXymxjY4U2QeoblmFfli/T1iMaLWG0vzjoFTh\nimNYV/66UVSidyPvTI3LjK8GZ9+H9xrDNHcKZ0exbHaH8CJfwFosRqMtz2rj\n2xXZvCRDOEtClEJlnR7EzQ4gmUx4o36pyZiiIqn1enkN1s2rLxUK0lqzjqTy\nmZj+UiJTYlZ+9LvPPlRbLfbEtgWq3JKnvCMYbkCfiwWKPKV+LqhFwIS0a+x4\nqoDxw51lCzOLHgAqtnftE8PRhBzrnAiflpEh5Wr8jk4vtn3j0qG1aoGczIBL\nRhEe\r\n=F8mv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlhYcaOJW7Y9Y3mgNSVh+IuEuGiGSb9Cz1KDk5XIIAiQIhAJ44aipOd95H57pkH8GThZ6u7jUpAUY//9M8MnCpYfqy"}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.3_1549149281663_0.21855245307991256"},"_hasShrinkwrap":false},"0.1.0-alpha.4":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.4","main":"lib/index.js","module":"es/index.js","repository":{"type":"git","url":"https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","scripts":{"babel":"babel src --ignore **/__tests__ --delete-dir-on-start -x .js,.ts,.tsx","build:types":"tsc --outDir lib","build":"yarn babel -d lib && yarn build:types","prepublishOnly":"yarn run build","tdd":"jest --watch","test":"yarn lint && jest","testonly":"jest","eslint":"eslint . --ext .js,.ts,.tsx","prettier":"prettier --ignore-path .eslintignore '**/*.{json,css,md}'","import-sort":"import-sort '**/src/**/*.{js,ts,tsx}' '!**/__generated__/*' '!**/*.d.ts'","lint":"tsc --noEmit && yarn eslint && yarn import-sort --list-different && yarn prettier --list-different","format":"yarn eslint && yarn import-sort --write && yarn prettier --write"},"publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"extends":["@4c/semantic-release-config"]},"devDependencies":{"@4c/babel-preset-4catalyzer":"^4.1.1","@4c/jest-preset":"^1.3.0","@4c/semantic-release-config":"^1.0.2","@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-typescript":"^7.1.0","@types/node":"*","@typescript-eslint/eslint-plugin":"^1.1.1","babel-core":"^7.0.0-bridge.0","eslint":"^5.12.0","eslint-config-4catalyzer":"^0.7.0","eslint-config-4catalyzer-jest":"^1.1.0","eslint-config-4catalyzer-typescript":"^0.10.1","eslint-config-prettier":"^4.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"^3.0.1","husky":"^1.1.2","import-sort-cli":"^5.2.0","import-sort-style-4catalyzer":"^4.3.0","jest":"^24.0.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.5.0","travis-deploy-once":"^5.0.0","typescript":"^3.2.2"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","licenseText":"MIT License\n\nCopyright (c) 2019 4Catalyzer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@4c/selenium-sandbox@0.1.0-alpha.4","dist":{"shasum":"b7fe4b1e9870d2c17b9017597669a66998b4964d","integrity":"sha512-4SNuCxgzYEP98syg5Rf+8XpsU7uq/RXjfVrvM6YUyOkmEHxZjJ3IeK3PP3XrlLPOtD8lVWLGDG+N/jfKqaOR1g==","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.4.tgz","fileCount":23,"unpackedSize":17872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcViXBCRA9TVsSAnZWagAA7akQAIYM2RxZdFWr/OfepgPy\n9MgK2QJEKECirU7ZU2l+gcrpKshIQkrq9aa7FRVXTMKQpnA7QiTm00Fihjhb\nAxl1e3w4+fg1mhzEvfWTPWS9TwNejWhV4vSDqdouLZhokkh+eNhIvl3ISILR\nQLvFXmnxo1OyvL6K+b1KQ9+l7i90JME+aPugp7mSc9QbeRklqb+misMVlozM\nY+4vC4V0Qiegqm2wfgyjzx9P64fck2vNUhB6+6p3mrugBHLXJJompWSuAez1\nniXGYmHbVbG5Gh5bhGL+bbPZLztbE+G4a5qTJ/rV1bMlJ/ebEeRhtuEJfXL2\nGBSAbZBqVVfVba1uIO6EsbNr4BnTPd5gsCrFVReaapLCa9GcqPqzq7LbsAmc\n5mzuHgrMbc0vUrTydATaPbvqrDAW1esP+ItP2jyla96tgRxGTmpSwy1hKZD6\ny2JS6bA9/uZFR74RnOhW1L5QzJjaA9gVShY9wW1RDc+SDIhuEdeEe7QXQhzh\nannNh3dWh4fDHb2NYgMQdKu++cyHGcNZt+isZSm7NAWjqHxQ2hMN7ow6rxGI\nFSd+HhCEG5hVW3Ang8W+mtnt+MgKL/Y4E14nbaJMUyf56mHTmVxHUvNhZJdb\nEQ3fY74RjiVPxTZK6MwXebfLJ5kc0W86FTQmf12IAHxr+J3D1mDSTa7QFwHf\nJu/2\r\n=TnYz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsgyWO3ZnbRy3+DszxJFnq1IsjiDCpBZnNl3W4TRpsEwIgRBaT0fQimYxSawFyHpHfvA8OlypiE6dDlFGORn56uoI="}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.4_1549149633261_0.24347605653216475"},"_hasShrinkwrap":false},"0.1.0-alpha.5":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.5","main":"lib/index.js","module":"es/index.js","repository":{"type":"git","url":"https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","scripts":{"babel":"babel src --ignore **/__tests__ --delete-dir-on-start -x .js,.ts,.tsx","build:types":"tsc --outDir lib","build":"yarn babel -d lib && yarn build:types","prepublishOnly":"yarn run build","tdd":"jest --watch","test":"yarn lint && jest","testonly":"jest","eslint":"eslint . --ext .js,.ts,.tsx","prettier":"prettier --ignore-path .eslintignore '**/*.{json,css,md}'","import-sort":"import-sort '**/src/**/*.{js,ts,tsx}' '!**/__generated__/*' '!**/*.d.ts'","lint":"tsc --noEmit && yarn eslint && yarn import-sort --list-different && yarn prettier --list-different","format":"yarn eslint && yarn import-sort --write && yarn prettier --write"},"publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"extends":["@4c/semantic-release-config"]},"devDependencies":{"@4c/babel-preset-4catalyzer":"^4.1.1","@4c/jest-preset":"^1.3.0","@4c/semantic-release-config":"^1.0.2","@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-typescript":"^7.1.0","@types/node":"*","@typescript-eslint/eslint-plugin":"^1.1.1","babel-core":"^7.0.0-bridge.0","eslint":"^5.12.0","eslint-config-4catalyzer":"^0.7.0","eslint-config-4catalyzer-jest":"^1.1.0","eslint-config-4catalyzer-typescript":"^0.10.1","eslint-config-prettier":"^4.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"^3.0.1","husky":"^1.1.2","import-sort-cli":"^5.2.0","import-sort-style-4catalyzer":"^4.3.0","jest":"^24.0.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.5.0","travis-deploy-once":"^5.0.0","typescript":"^3.2.2"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","licenseText":"MIT License\n\nCopyright (c) 2019 4Catalyzer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@4c/selenium-sandbox@0.1.0-alpha.5","dist":{"shasum":"66902b72d70a613b7708c95ee4b1abdc23fabbfe","integrity":"sha512-DEjD5pz2FwGIVxdnfkI5/CPwuAYYb5XGpCkveB61IAgG0RFADwot1J0XIUI9LWQP80+0ynfpcmrWW97wGFZUyA==","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.5.tgz","fileCount":22,"unpackedSize":19134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVib/CRA9TVsSAnZWagAAQT8P/34qHF+Z9C8RMtdVKyby\nR1lAnu3nFTfBWcFFG/uVW+vZwzVeZbB0tIFg+QfIb4+PmcRHoiKc1PxP9hEm\nRTXCi0V29dO1sVo70tlWfnnRy3JoHXk8FzS6KOuhoscTZAdl7Wvy9PxA+K/P\nBJmv5fxL3fLRoPdilxnXrn4IxuBpGC9R0HVLgyjyqukr3c+HooGFVi3x9giy\nknyedVocNo3vvBjdQeb8bjJcultxsbvb4whKf1yntfpybsHAZRFX4VMCh5Na\nFeP/Ab9bbitxVqVZMg0QMVstotA3P7n6fV15zKBl7UK6jAqAUgLwZ8Y4OWki\ngfPo2zoEpByU4zDn/v1GD51C/2mFp6NrMQ3x41cpjQ1et5106lVHUfratdBf\npk9T9e6uQEWSvGnO6+v33NR5bsXOcMXFg/sO8X+q47eXjGN1SlDyp/bjrd1P\n+FbJW+KK9F2UtN/pY5eMZNoAgOziAP9K6HcPOSK+NHTf7rdg2mdTfJdiSepR\nkjJS6IrqpuqykdfIqPiTVHknNlDRFGO5NJxBd4fmbH2HVrl8qh7E65vusSkp\nV992AYY8PQ0Uqk8h2EE+gX/Cwy8d4Eoxbe5E5SI0mG2kD1sEI0tnvhH0fMp0\ncFyzy4ARalecrkMDnwMJp1E/iBroN3ZeLpo0Jcwsf8hAAGI8YX1zpKE9mEaS\nxbhk\r\n=91Kk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDpYlYTYJN0ifKjsVHVc6U00kqyePYKU8o8Qp0TqfB4bAiEAumdXRn/2qZPDNyX2pTcfQ2+mHpKofsJWMy4HaEe61AM="}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.5_1549149951082_0.47730941470853705"},"_hasShrinkwrap":false},"0.1.0-alpha.6":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.6","main":"lib/index.js","module":"es/index.js","repository":{"type":"git","url":"https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","scripts":{"babel":"babel src --ignore **/__tests__ --delete-dir-on-start -x .js,.ts,.tsx","build:types":"tsc --outDir lib","build":"yarn babel -d lib && yarn build:types","prepublishOnly":"yarn run build","tdd":"jest --watch","test":"yarn lint && jest","testonly":"jest","eslint":"eslint . --ext .js,.ts,.tsx","prettier":"prettier --ignore-path .eslintignore '**/*.{json,css,md}'","import-sort":"import-sort '**/src/**/*.{js,ts,tsx}' '!**/__generated__/*' '!**/*.d.ts'","lint":"tsc --noEmit && yarn eslint && yarn import-sort --list-different && yarn prettier --list-different","format":"yarn eslint && yarn import-sort --write && yarn prettier --write"},"publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"extends":["@4c/semantic-release-config"]},"devDependencies":{"@4c/babel-preset-4catalyzer":"^4.1.1","@4c/jest-preset":"^1.3.0","@4c/semantic-release-config":"^1.0.2","@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-typescript":"^7.1.0","@types/node":"*","@typescript-eslint/eslint-plugin":"^1.1.1","babel-core":"^7.0.0-bridge.0","eslint":"^5.12.0","eslint-config-4catalyzer":"^0.7.0","eslint-config-4catalyzer-jest":"^1.1.0","eslint-config-4catalyzer-typescript":"^0.10.1","eslint-config-prettier":"^4.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"^3.0.1","husky":"^1.1.2","import-sort-cli":"^5.2.0","import-sort-style-4catalyzer":"^4.3.0","jest":"^24.0.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.5.0","travis-deploy-once":"^5.0.0","typescript":"^3.2.2"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","licenseText":"MIT License\n\nCopyright (c) 2019 4Catalyzer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@4c/selenium-sandbox@0.1.0-alpha.6","dist":{"shasum":"387231bd6362a5823df187ee50c4425cb48052b3","integrity":"sha512-nKo8rcfvIklOPWTCJLanvzDUNppTPNRiD5RWLG5mBr7KDvxv+owJN4AuT1vGk2EAxcYrMgi+vd1ESu/48pK+OQ==","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.6.tgz","fileCount":22,"unpackedSize":18780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWFh7CRA9TVsSAnZWagAAazwP/1cu/E85OBJh8Z3SggUt\nJc0tnDoDDW34PGqvobN4CxOj3iAmhNZuHGEhyTavEKSq5ylAHB0yOAgW+q60\nlaoWDE3invpEVz8p/krtFmUpUZPZqJMuBoTTxKZbhLReQ3NjFdXBuPpnDfwH\n1hVdRjAlueA57+q67W5cvcp0uXElqiVlnGI074FvgbIMnqYqUCyTX4ezLmE8\n4lC4Ge3hlUrEy12fw/mBOiBI5eFSVjG9B9ASyP8oh6kxdYUd+MnU//FbnjEZ\nr+oUCX5p4/633DZ8GalvcF43M+IOppb5lXE5P8LtHswIP2abPBNw0YcZUbHN\nKgGGOmzXvgeJHJDrO/iMU9CS0/whDAPlAgAb6c/Mew60bvjPMK6bZFIFGtJb\n35EK/1JqAZ9jzN7JsJECVCvndIMu5Wab7yNRv8j5tqvA1/x5gStg810veiAE\nAqOjig/7CltGsmByaJNScPrNrs3TS1ZMOL4mYl7qyo3OKryt2V0656hoaTil\nlSLYjEUbfTllXtJF1q5PloxypgQhnUx6hylZLpY5DSNxW8H/rcjrTevyTQYv\nOxI98fwyPuPED+7yj2phVTe6bJgBxIiJnWiTl+aTjicdM+bMTHgCWfj4dtQP\nN3ZrxdccjEOMjyn7B3JI1szBF5uxoxq87DRXJ4AHFZcV+Alu5TYj8eLdEjdS\njclR\r\n=uTaW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEy21AWP377RzPZVR6iqkEVWesHnHsxRN07fj8OIpBxVAiEA62Z/5IAaZaNebl9RUvlsS3DchRkBy3+pIeGP5a7+29c="}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.6_1549293690557_0.41428833986805147"},"_hasShrinkwrap":false},"0.1.0-alpha.7":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.7","main":"lib/index.js","module":"es/index.js","repository":{"type":"git","url":"https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","scripts":{"babel":"babel src --ignore **/__tests__ --delete-dir-on-start -x .js,.ts,.tsx","build:types":"tsc --outDir lib","build":"yarn babel -d lib && yarn build:types","prepublishOnly":"yarn run build","tdd":"jest --watch","test":"yarn lint && jest","testonly":"jest","eslint":"eslint . --ext .js,.ts,.tsx","prettier":"prettier --ignore-path .eslintignore '**/*.{json,css,md}'","import-sort":"import-sort '**/src/**/*.{js,ts,tsx}' '!**/__generated__/*' '!**/*.d.ts'","lint":"tsc --noEmit && yarn eslint && yarn import-sort --list-different && yarn prettier --list-different","format":"yarn eslint && yarn import-sort --write && yarn prettier --write"},"publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"extends":["@4c/semantic-release-config"]},"devDependencies":{"@4c/babel-preset-4catalyzer":"^4.1.1","@4c/jest-preset":"^1.3.0","@4c/semantic-release-config":"^1.0.2","@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-typescript":"^7.1.0","@types/node":"*","@typescript-eslint/eslint-plugin":"^1.1.1","babel-core":"^7.0.0-bridge.0","eslint":"^5.12.0","eslint-config-4catalyzer":"^0.7.0","eslint-config-4catalyzer-jest":"^1.1.0","eslint-config-4catalyzer-typescript":"^0.10.1","eslint-config-prettier":"^4.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"^3.0.1","husky":"^1.1.2","import-sort-cli":"^5.2.0","import-sort-style-4catalyzer":"^4.3.0","jest":"^24.0.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.5.0","travis-deploy-once":"^5.0.0","typescript":"^3.2.2"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","licenseText":"MIT License\n\nCopyright (c) 2019 4Catalyzer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@4c/selenium-sandbox@0.1.0-alpha.7","dist":{"shasum":"0f56faa6cae5eeb4eaeb198d7e74c25f592b791b","integrity":"sha512-FNu69PViIBto+EGDzxbpcQHdBpLfY07EgeCsOJEsKkonHnrn+dgFCR/lHiJNPw+l5hJf6M2O3XDXP6AFpiRUzg==","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.7.tgz","fileCount":22,"unpackedSize":18822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWGjaCRA9TVsSAnZWagAAtcsP/0m451opJgTs32kVs2Xn\nfuqq/p6RxYuUgmfhnBtVlHeaoxbCjWIIdXAIixe2un67p1LHtmGnBIhJLfz/\nMHJFoG4j+5CPm2VnQxvvhQEL7UDYABX43xvQyr6N4FnkfdiX2r2n6pjzn9N3\nZ44JxU2PpI1Oj7dtZYWxNsT5CGn4m/zrhdrsj9vPxPOeP1ol6D/ecftCYofQ\nFxjEH2tup0rEsCholLwS2TY4GfMVzJvWn5Yf6B5RopwAKbzK/KEcKhmS9tNn\nodF0LjPCC2MHQzgxvqish6Qnmb4LDX01gDYsoEwtMBQYdXpzAJe2pE5tKL5D\nrfSBu4LSimkuWcYxwwxyHEYDIqzRVjI9CWw4IPUyo3gaw7XuMymIYLS8+Fo/\ngriswnmk2KMwD5k2ngRCqn5eaLhKPtmHBo0L98L9SkBr4gHOuQxhbqlFomrg\ns2Ou44uX0bZow3JKsz9F8woI8mEJDA9lVkp+XrkV6F9tQkmhcCZZISwFeMOv\nazEA5erhI706hXncuYZ28gs56l59lH46Rm6i9D/EldX0pHvo9ptYGuxnOqc3\ninbbtD52u4reOF5VDxp+or+FiUlAar+9UI2Ubce+MWhy0XhvsMiozIWpKfhx\n+t0dCpqY4ox+PuXkDcQ1C/5pQ1BPw5F6Nl7pCQMddyNZTAlT9iWDsV0ylPTd\ntpXW\r\n=PSTn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHbm9lyZq3H4BbPVDUSiopRjnKJMS3uOyuWgzq7RF7XWAiEAmot7CJQbJsc/DxZjLwt1/h8wvhx9sL83fmS98cW+E8w="}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.7_1549297882077_0.20994136114626527"},"_hasShrinkwrap":false},"0.1.0-alpha.8":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.8","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"readme":"# selenium-sandbox\n\neasily mock a web application accessed through selenium. Contains also an environment for integrating with jest.\n\n## Getting started\n\n### 0. Install\n\n    yarn add -D @4c/selenium-sandbox\n\n### 1. Add the sandbox to your test client\n\nFirst, we need to instrument our application to use the sandbox environment. Create a module (let's call it `injectSandbox.js`)\n\n```js\nimport sandbox from '@4c/selenium-sandbox/browser';\n\nconst store = {\n  widgets: [],\n};\n\n// additional properties and methods that can be accessed from selenium. for example here we are passing a store object\nconst context = { store };\n\nsandbox.setupTextContext(context);\n\nsandbox.fetchMock.mock('path:/api/v1/widgets', () => store.widgets);\n```\n\n> **Note**: documentation for `fetchMock` can be found [here](https://github.com/wheresrhys/fetch-mock)\n\n### 2. Instrument Selenium\n\nAdd utilities to an already existing selenium driver (v4):\n\n```js\nimport { augmentDriver } from '@4c/selenium-sandbox/webdriver';\n\nconst driver = augmentDriver(\n  myBaseSeleniumDriver,\n  'http://sandboxed-app-to-test',\n);\n```\n\n... Alternatively you can use buildDriver to instantiate a reasonably opinionated driver:\n\n```js\nimport { buildDriver } from '@4c/selenium-sandbox/webdriver';\n\nconst driver = buildDriver(\n  baseUrl: 'http://sandboxed-app-to-test';\n  seleniumAddress: 'localhost:5000/wd/hub';\n  browserName: 'chrome';\n  screenSize: [1024, 768];\n  // optional\n  mobileEmulation: {\n      deviceName: 'iPhone 6/7/8',\n  };\n);\n```\n\n### 3. Usage\n\nTo mock:\n\n```js\nawait driver.get('my/page');\nawait driver.executeInBrowser(context => {\n  context.store.widgets = [{label: '1', label: '2'}]\n}\n\nconst button = await driver.find('//button[text()=\"Get Widgets\"]');\nawait driver.click(button);\n```\n\nIf a request needs to be mocked _before_ page loading, you can use `executeAtStartup` instead of `executeInBrowser`. the code will be stored in storage and executed when the assets are loaded\n\n> **Note**: Since the function passed to `executeInBrowser` or `executeAtStartup` needs to be stringified in order to be executed in the remote browser, it cannot access variables defined outside of its body.\n\nYou can also access fetchMock from the context to make additional mocks:\n\n```js\nawait driver.executeInBrowser(context => {\n  context.fetchMock.mock('path:/api/v1/users', () => ['user1', 'user2'])\n}\n```\n\nSince `fetchMock` is part of the context, it can be used to make assertions on the requests. There are two helper methods on the driver to facilitate that:\n\n```js\nconst request = await driver.getLastRequest();\ninvariant(request.headers.Authorization == 'Bearer XXX');\n\nconst requests = await driver.getRequests();\ninvariant(requests.every(req => req.headers.Authorization == 'Bearer XXX'));\n```\n\nthe driver has also the following utilities methods:\n\n```js\n// more resilient than element.click, will retry several times to avoid flakiness\nawait driver.click(element);\n\n// accepts an xpath query and returns the first match. It will wait that all\n// images are loaded and that the element is indeed visible\nawait driver.find('//button[text()=\"Get Widgets\"]');\n\n// unlike the base webdriver, allows to pass a path which is concatenated\n// to `baseUrl`\nawait driver.get('my/page');\n\n// the name says it all. Useful to make sure the page has finished rendering\nawait driver.waitForAllImages();\n```\n\n## Jest Support\n\nThere is also support for easy integration with Jest.\n\n### Environment\n\nadd the following line to your jest config:\n\n```js\n{\n  // ...\n  testEnvironment: '@4c/selenium-sandbox/jest/environment.js',\n  setupFilesAfterEnv: ['@4c/selenium-sandbox/jest/setup.js'],\n  testEnvironmentOptions: {\n    baseUrl: 'http://sandboxed-app-to-test',\n    seleniumAddress: 'localhost:5000/wd/hub',\n    browserName: 'chrome',\n    screenSize: [1024, 768],\n    // optional\n    mobileEmulation: {\n        deviceName: 'iPhone 6/7/8',\n    },\n  },\n}\n```\n\nthis will:\n\n- declare a global `browser` variable as described above\n- set a 10s timeout which is a better fit for selenium tests\n- add a snapshot serializer specific to fetchMock requests\n\n## TypeScript Support\n\nType definitions come out of the box. For full jest support, you should add the following declaration to be used in your test file:\n\n```ts\nimport { AugmentedDriver } from '@4c/selenium-sandbox/webdriver';\n\n// define a context type that reflects the context passed in `setupTextContext`\ntype Context = {\n  store: {\n    widgets: {}[];\n  };\n};\n\ndeclare const browser: AugmentedDriver<Context>;\n```\n","readmeFilename":"README.md","description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.1.0-alpha.8","_npmVersion":"6.5.0","_nodeVersion":"10.3.0","_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"dist":{"integrity":"sha512-dbYF7QPq8MF+02OVfOvwMEX+4meM/kE2d7BXRmzn29q4v5gd3oQl92G2Zts6j4OkWJ2opOBFuL6FG+1inDdPNA==","shasum":"4eaf6bb403e4683be7d152f14e880bba5b9db475","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.8.tgz","fileCount":18,"unpackedSize":22241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWtxNCRA9TVsSAnZWagAA03EP/3+QrTgziD4i0SrdKy4/\nsJso5BxRts4GUxm/DQF1RInLOp68ZF8Prk/BtZoCOaBquZiTQ0Zc0iOKiX5i\nGjwSwF1q9DhKAgK7b7jNHZCgcPLw/9xn3y1kG+ScwvK4PyOZoeeBl15pXxD6\nukBhAJrvAU4MiTqEsinSwioztP7WQpN+n2MfopztLkfy2HtPiH9Rjh/+H+v4\nC0ALN40ewwvtuqWKupthmYWPjCw1dkghLvNMXN9gjM1YY6KO+eZBxRIObfzG\ngx9VjPt/6X+Axrw1kVFrVv6QnJFvExrZWYp3YPn6DNPQhgR9czHZrRAHIwjW\n1jPZto/gfA5s8G9GO/+GAfHjtNKxHPYoymnb/kM358MUhy3GiZUmgfp1YygJ\n6POLcZYrLVShcEKdMX0WPqgMN6kiRfrItnGDkd1sV6K2fd+QqgD9PJ8c5q8t\nfuwEIp9EPMdJHwNBLpRE9s3jwJLXYDj8078DH8F+9mihlz7EJtfOQDvzxyeU\nDis70GRwmH0fKT6dsGz1G+TvW93Kg1A/DApRhOGmahrwP55VMF7q5/zdjB2u\nKGqEjv6/sY3FGhSGbjK7ZMi3DqpfNL2AdgGnqWjjmL/Z6LltnA6NguzF1L82\nCID9PruDavy7J+KF5HTl5/zLMtBwbFio9fnSGx0BH/3bhghwwgzM6Prmsuc3\nMerz\r\n=CqZP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHiqGcw4q5JjaIujLKAb7i8pY02qn8em7ndMt3b8rcxaAiB86X9xudGBMqrqkFwPx9e/TR/7KPWPbqJV4gaI/0D32Q=="}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.8_1549458508605_0.7939271008417115"},"_hasShrinkwrap":false},"0.1.0-alpha.9":{"name":"@4c/selenium-sandbox","version":"0.1.0-alpha.9","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"readme":"# selenium-sandbox\n\neasily mock a web application accessed through selenium. Contains also an environment for integrating with jest.\n\n## Getting started\n\n### 0. Install\n\n    yarn add -D @4c/selenium-sandbox\n\n### 1. Add the sandbox to your test client\n\nFirst, we need to instrument our application to use the sandbox environment. Create a module (let's call it `injectSandbox.js`)\n\n```js\nimport sandbox from '@4c/selenium-sandbox/browser';\n\nconst store = {\n  widgets: [],\n};\n\n// additional properties and methods that can be accessed from selenium. for example here we are passing a store object\nconst context = { store };\n\nsandbox.setupTextContext(context);\n\nsandbox.fetchMock.mock('path:/api/v1/widgets', () => store.widgets);\n```\n\n> **Note**: documentation for `fetchMock` can be found [here](https://github.com/wheresrhys/fetch-mock)\n\n### 2. Instrument Selenium\n\nAdd utilities to an already existing selenium driver (v4):\n\n```js\nimport { augmentDriver } from '@4c/selenium-sandbox/webdriver';\n\nconst driver = augmentDriver(\n  myBaseSeleniumDriver,\n  'http://sandboxed-app-to-test',\n);\n```\n\n... Alternatively you can use buildDriver to instantiate a reasonably opinionated driver:\n\n```js\nimport { buildDriver } from '@4c/selenium-sandbox/webdriver';\n\nconst driver = buildDriver(\n  baseUrl: 'http://sandboxed-app-to-test';\n  seleniumAddress: 'localhost:5000/wd/hub';\n  browserName: 'chrome';\n  screenSize: [1024, 768];\n  // optional\n  mobileEmulation: {\n      deviceName: 'iPhone 6/7/8',\n  };\n);\n```\n\n### 3. Usage\n\nTo mock:\n\n```js\nawait driver.get('my/page');\nawait driver.executeInBrowser(context => {\n  context.store.widgets = [{label: '1', label: '2'}]\n}\n\nconst button = await driver.find('//button[text()=\"Get Widgets\"]');\nawait driver.click(button);\n```\n\nIf a request needs to be mocked _before_ page loading, you can use `executeAtStartup` instead of `executeInBrowser`. the code will be stored in storage and executed when the assets are loaded\n\n> **Note**: Since the function passed to `executeInBrowser` or `executeAtStartup` needs to be stringified in order to be executed in the remote browser, it cannot access variables defined outside of its body.\n\nYou can also access fetchMock from the context to make additional mocks:\n\n```js\nawait driver.executeInBrowser(context => {\n  context.fetchMock.mock('path:/api/v1/users', () => ['user1', 'user2'])\n}\n```\n\nSince `fetchMock` is part of the context, it can be used to make assertions on the requests. There are two helper methods on the driver to facilitate that:\n\n```js\nconst request = await driver.getLastRequest();\ninvariant(request.headers.Authorization == 'Bearer XXX');\n\nconst requests = await driver.getRequests();\ninvariant(requests.every(req => req.headers.Authorization == 'Bearer XXX'));\n```\n\nthe driver has also the following utilities methods:\n\n```js\n// more resilient than element.click, will retry several times to avoid flakiness\nawait driver.click(element);\n\n// accepts an xpath query and returns the first match. It will wait that all\n// images are loaded and that the element is indeed visible\nawait driver.find('//button[text()=\"Get Widgets\"]');\n\n// unlike the base webdriver, allows to pass a path which is concatenated\n// to `baseUrl`\nawait driver.get('my/page');\n\n// the name says it all. Useful to make sure the page has finished rendering\nawait driver.waitForAllImages();\n```\n\n## Jest Support\n\nThere is also support for easy integration with Jest.\n\n### Environment\n\nadd the following line to your jest config:\n\n```js\n{\n  // ...\n  testEnvironment: '@4c/selenium-sandbox/jest/environment.js',\n  setupFilesAfterEnv: ['@4c/selenium-sandbox/jest/setup.js'],\n  testEnvironmentOptions: {\n    baseUrl: 'http://sandboxed-app-to-test',\n    seleniumAddress: 'localhost:5000/wd/hub',\n    browserName: 'chrome',\n    screenSize: [1024, 768],\n    // optional\n    mobileEmulation: {\n        deviceName: 'iPhone 6/7/8',\n    },\n  },\n}\n```\n\nthis will:\n\n- declare a global `browser` variable as described above\n- set a 10s timeout which is a better fit for selenium tests\n- add a snapshot serializer specific to fetchMock requests\n\n## TypeScript Support\n\nType definitions come out of the box. For full jest support, you should add the following declaration to be used in your test file:\n\n```ts\nimport { AugmentedDriver } from '@4c/selenium-sandbox/webdriver';\n\n// define a context type that reflects the context passed in `setupTextContext`\ntype Context = {\n  store: {\n    widgets: {}[];\n  };\n};\n\ndeclare const browser: AugmentedDriver<Context>;\n```\n","readmeFilename":"README.md","description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.1.0-alpha.9","_npmVersion":"6.5.0","_nodeVersion":"10.3.0","_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"dist":{"integrity":"sha512-grJiv5rLpjgMXAFPQhXYfckrsRuhE/uUrtFMNCdKIsTYV/3GjClACQX2ZHISUtmq9bNjXh3/Y1znLwzzioPfqw==","shasum":"e0275aa50e4817c7dd86eda94a8b3929deadf8cb","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0-alpha.9.tgz","fileCount":14,"unpackedSize":16953,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWwpUCRA9TVsSAnZWagAAuSEP+wbXTafj0C//ArTjI8LU\nDE+BgVmje4Z9cEGmXxNziOwtE/uJVol5ftRbptukGoGN4ToqU5m+zbJae70L\nWRiHoHAxoQ9kFb3FIrkieeKMYDQIDZu5g3y3AhJa1kKnxxkNeY7l3Qarr/Gn\n4R8yAtdgYF8eMnYJOr6ZMC8Gcg8JYvxpNx6WObA9QCb6o2kADSx4e5ZJMaL2\ngZWs8Yw6CZyluSjyGVQE42blEg5uZHFA1A7wrrLfvWB6AC0sg9sbY0cxEy7k\nmMLMNaX4948KwnyueWf24Na2/J3qYeNHOKe+afGlLpY9N7de5F8H/pYh999f\nUodYqVZW54goBiCHxjZFBah+sFoZNczeEJG7TYoB74w0W4+MUUUQIK2UiNhN\nbd06ab1wsPCK9G+6ZMuGGaCzLHmXc4FTqICqAypG3fLQ9zdOhe0QedZEATzS\nnWbtllmHX852gE1xUb21orxg6SJkI6VQ/cZb8bD+90cKyVmMolxjMup3Hliv\nFodrotbcghMgBMxnouH8BoKB/Dj5UlR3oCetLjGXcX8J3JUFkvo3NVit+XP1\n95lZXseLtaki1NvXvV8Fnl2TYHZEpvWytM3Q32gE9yPk5Ocf0SncJMy7TR8E\nA/RYznRLdL86Zv6MKnfqJCZuR//3zH6G6IMSJTITOByY4ywtm99urh2rvcrE\nfbJn\r\n=XBc6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD3VbwTH4zcIJCy7YC0YK8znERnIzdbXX/n7eEecSrUAIhAJnz1fg0l7JfQSaXJpqfd/RuHwj/M26kPMX7T4pdczC8"}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0-alpha.9_1549470292411_0.47762614405391957"},"_hasShrinkwrap":false},"0.1.0":{"name":"@4c/selenium-sandbox","version":"0.1.0","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.1.0","_npmVersion":"6.5.0","_nodeVersion":"10.3.0","_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"dist":{"integrity":"sha512-HG+JjnW5ctz9p0O4fJfWy7b4QiAeSdVN34QioxBcAaAtF4NAxwClmYlIRgyI1qUAZ3ws/GMPm39K6cP5SWtXLA==","shasum":"74f8aaba4f93034a9471d26a598033675d3124ef","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.0.tgz","fileCount":14,"unpackedSize":16945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXH1GCRA9TVsSAnZWagAAHVQQAJX0Bbt4Y72BSk+Mj6fT\noYSpTel4vlfG7KvJHF6YikhJwOx/J6RFqHdMjH1+NT4UldhVknugss9ItqgW\n3rLIo49Y9HGqBvBKlRYGqEgVtBBswgiLnsGcgR5+nVqKgmWvGDX0+FxexCzm\nd4NXNSTYBykQqqnGwl9AFUhtUrK96x9s9XoQEUL9yGaS85tviDrZavb+H/e4\nk2fPYwk+DGXEnvN/1KO/h6b2z87zevPrdbip1u4hh3vMnkQAa0c7xndUAPqD\nmcVknjIPlsF/SdLFpU8kjMjvsWVnt4iBKCr9MCqgSXUqvl59HynXVKC2HEFs\nvkSoTXalSbEgDKDJvu87sZcVknIan1SwntCp0+a/Ab4c3EjItpcY6NJY9pnm\n8+CUc1ercLgoq0x8CqP2KTfs51AXTqxuOpG0Ibz7wdzo4/twrkc3cYM/oNW0\nCviWSGJDE9PvTJL9N4IKNYIk01B9KRLfe5ykhDw9JSBUE2GeAMWFEf5dBcMO\nMfjVvh45vsFh12LEEaWSDMKkEZHhMKbNkEo1Z8vGF5G9sqILcJ+mM+HOTyZU\nA63NcFR5beo2RzA+ouTiOxaWrnD3tZswK/yPRn79ZLn/M1qJer8GUii2j+Ci\nhsr0YuEeoYQAgQquBebPxtJEn8CscwyBEoylYzNfxsmfIKo+7K9GKxFaB58H\nj91R\r\n=Ieua\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpBgv++eDRkxeCdw1JxsmPNQZ6K8i1hd8125ZIWMXFWAiA8lYYaExQjqSn4AwaxPYpFvkO0aDhFuh7bGq85IsbIXw=="}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.0_1549565254331_0.5223785183505651"},"_hasShrinkwrap":false},"0.1.1":{"name":"@4c/selenium-sandbox","version":"0.1.1","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.1.1","_npmVersion":"6.5.0","_nodeVersion":"10.3.0","_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"dist":{"integrity":"sha512-dHwpeHnAbCZnE7I3L1C804Az5wYlK1kiZyvET142DdU3572QYacSQC/BEMzzWxhyRhzSx2n0cOUrfZqLIdVhHQ==","shasum":"e2ff70fa7131a8827af00ad9f5ba3f978a0ca755","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.1.tgz","fileCount":14,"unpackedSize":16934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdKsaCRA9TVsSAnZWagAANa4QAJKdsUpCBPXfKK3Xgs7N\nlJD2KXsRkBBqEUuWI8c6TsieIBcl8AgAchdlMpZRZUAgoYiWvXqG65RBuY2c\negahoUDBqLnQt7AZYISMLtU/7isbdA8r4BQTTrr7YfAeEUpMhpD6tRWwj3dn\nyySTVAP0aYxKqncEsxzGyoKvLMQrBKg1VW+yWrLI8SWj2Y6zH06BP17QjvP0\nI/Byrf9DO63eLVpYD4UARxufnXPV1fWJ3b3HS5rFbFC5GEK4yFe7meY7aeMu\nRjlRm3pVhojf5/SgPWQAjygh1pxcvz8WlSLi8CiMfj6ZIwQJCB/PwVTxKQte\ncXllQo247ehHz6vWKQS2xLdNaknnb78slHkcUFKMgFRAeR6aMWe3VC8Jog+R\n1ElPLWH+qxhxf5h+7ZEL1V1YeAw0NpGLLsDK4bOfliSoSta9uGEEayN0ddGz\nkHC/kdGOlgRytSnnOcecyMr8RT8F63ZBhJQkIz/NNhKhej5x47BQ4n2Nnua1\n5z+7e+iU30uo/XPne34IoJB0+qtIsG9cAgOfetDnmYgMN5uoRdOwNGDR6I7d\nvxr/8r5inKtPKbST+b5iwG9bzHc/kYaDulehHpmNFyNJuqw+lw2dCxQ2FBtX\n9iVrrU15FrnVZjkq2FGfU/fNnAMy7iNlPGdrMdeJ04BPw3NaLXOa0wruzYUe\nJ8Kz\r\n=R0Cg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ2n2ZloaChsadtA6qcHpYgUqqS65BZiYvNGa7yXX2VAIgfHVVcFuz1fP012jHIceSnwua2wFEhrSMyiWiu2aO29c="}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.1_1551149850451_0.030322085783218933"},"_hasShrinkwrap":false},"0.1.2-alpha.1":{"name":"@4c/selenium-sandbox","version":"0.1.2-alpha.1","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"readme":"# selenium-sandbox\n\neasily mock a web application accessed through selenium. Contains also an environment for integrating with jest.\n\n## Getting started\n\n### 0. Install\n\n    yarn add -D @4c/selenium-sandbox\n\n### 1. Add the sandbox to your test client\n\nFirst, we need to instrument our application to use the sandbox environment. Create a module (let's call it `injectSandbox.js`)\n\n```js\nimport sandbox from '@4c/selenium-sandbox/browser';\n\nconst store = {\n  widgets: [],\n};\n\n// additional properties and methods that can be accessed from selenium. for example here we are passing a store object\nconst context = { store };\n\nsandbox.setupTextContext(context);\n\nsandbox.fetchMock.mock('path:/api/v1/widgets', () => store.widgets);\n```\n\n> **Note**: documentation for `fetchMock` can be found [here](https://github.com/wheresrhys/fetch-mock)\n\n### 2. Instrument Selenium\n\nAdd utilities to an already existing selenium driver (v4):\n\n```js\nimport { augmentDriver } from '@4c/selenium-sandbox/webdriver';\n\nconst driver = augmentDriver(\n  myBaseSeleniumDriver,\n  'http://sandboxed-app-to-test',\n);\n```\n\n... Alternatively you can use buildDriver to instantiate a reasonably opinionated driver:\n\n```js\nimport { buildDriver } from '@4c/selenium-sandbox/webdriver';\n\nconst driver = buildDriver(\n  baseUrl: 'http://sandboxed-app-to-test';\n  seleniumAddress: 'localhost:5000/wd/hub';\n  browserName: 'chrome';\n  screenSize: [1024, 768];\n  // optional\n  mobileEmulation: {\n      deviceName: 'iPhone 6/7/8',\n  };\n);\n```\n\n### 3. Usage\n\nTo mock:\n\n```js\nawait driver.get('my/page');\nawait driver.executeInBrowser(context => {\n  context.store.widgets = [{label: '1', label: '2'}]\n}\n\nconst button = await driver.find('//button[text()=\"Get Widgets\"]');\nawait driver.click(button);\n```\n\nIf a request needs to be mocked _before_ page loading, you can use `executeAtStartup` instead of `executeInBrowser`. the code will be stored in storage and executed when the assets are loaded\n\n> **Note**: Since the function passed to `executeInBrowser` or `executeAtStartup` needs to be stringified in order to be executed in the remote browser, it cannot access variables defined outside of its body.\n\nYou can also access fetchMock from the context to make additional mocks:\n\n```js\nawait driver.executeInBrowser(context => {\n  context.fetchMock.mock('path:/api/v1/users', () => ['user1', 'user2'])\n}\n```\n\nSince `fetchMock` is part of the context, it can be used to make assertions on the requests. There are two helper methods on the driver to facilitate that:\n\n```js\nconst request = await driver.getLastRequest();\ninvariant(request.headers.Authorization == 'Bearer XXX');\n\nconst requests = await driver.getRequests();\ninvariant(requests.every(req => req.headers.Authorization == 'Bearer XXX'));\n```\n\nthe driver has also the following utilities methods:\n\n```js\n// more resilient than element.click, will retry several times to avoid flakiness\nawait driver.click(element);\n\n// accepts an xpath query and returns the first match. It will wait that all\n// images are loaded and that the element is indeed visible\nawait driver.find('//button[text()=\"Get Widgets\"]');\n\n// unlike the base webdriver, allows to pass a path which is concatenated\n// to `baseUrl`\nawait driver.get('my/page');\n\n// the name says it all. Useful to make sure the page has finished rendering\nawait driver.waitForAllImages();\n```\n\n## Jest Support\n\nThere is also support for easy integration with Jest.\n\n### Environment\n\nadd the following line to your jest config:\n\n```js\n{\n  // ...\n  testEnvironment: '@4c/selenium-sandbox/jest/environment.js',\n  setupFilesAfterEnv: ['@4c/selenium-sandbox/jest/setup.js'],\n  testEnvironmentOptions: {\n    baseUrl: 'http://sandboxed-app-to-test',\n    seleniumAddress: 'localhost:5000/wd/hub',\n    browserName: 'chrome',\n    screenSize: [1024, 768],\n    // optional\n    mobileEmulation: {\n        deviceName: 'iPhone 6/7/8',\n    },\n  },\n}\n```\n\nthis will:\n\n- declare a global `browser` variable as described above\n- set a 10s timeout which is a better fit for selenium tests\n- add a snapshot serializer specific to fetchMock requests\n\n## TypeScript Support\n\nType definitions come out of the box. For full jest support, you should add the following declaration to be used in your test file:\n\n```ts\nimport { AugmentedDriver } from '@4c/selenium-sandbox/webdriver';\n\n// define a context type that reflects the context passed in `setupTextContext`\ntype Context = {\n  store: {\n    widgets: {}[];\n  };\n};\n\ndeclare const browser: AugmentedDriver<Context>;\n```\n","readmeFilename":"README.md","description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.1.2-alpha.1","_npmVersion":"6.5.0","_nodeVersion":"10.3.0","_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"dist":{"integrity":"sha512-GrClRN+s1hXpYkaCYgNooJVx7FTNaxbt7Dq/RiAXO0yJCspiGB3rZsPMhJfIHUABjNLFpAactb8cDyehtEOhJQ==","shasum":"c98ee598a8ecc0e9007a53ee32430008d7633ab9","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.1.2-alpha.1.tgz","fileCount":14,"unpackedSize":17111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdf/fCRA9TVsSAnZWagAA5tEP/1ekvW/eKHikOPGuRgSJ\nqZjAYd7AAo7DegebSCVg14j8xp4yOSbqxLkEYHsjxpxqkBPQxkYsLKXGrWCM\nHsj/5ENlfzOzLo9sX/umrXubQpvY+SLF7+eedxVNIXGy/sxryc2FQjyvvnZw\nPkBBim+uyqi0m/2UhxQsGcZkUQ9iSrLCM9nXg7C0K6DtJT3jJJYJg0Oyke5f\nGAVid5jWRnX+04QwpRsmtemlvrRBKWbiX+lxwvjvlXEJ2/TbSGe0A282+Y8x\nMEc9HbFGSmvd3Luta4aglFyNd2FYEPI351EBOMVX7NXe2zGibPBVSJS24vHr\nakNQ+QQZq3OpgVwCMFd9xP5fTiJaniU0/6T1bbVLQK3fcE33RAvy2gSkkXGa\nwkEbw39lpEk2Cl4SCpBEHbpS62UCr3NdRH2zfTHveraPk3BeHyGtkhHAK6w1\nuGtqtwIJYFaQmmqJOTQDKICyB22Tzu33zga2YzwPKEHV5DbIRbo37qUXKhNa\n/qAS50l6us/F8tE+dn2OV76Dk/c4lwfx3xWCB5DVDDjHb4yLKni58rbjnveS\nspYZdeG6+xoo2pi7nmfuQWRpG7TznwAkbQ/qhyvHlF69ak9kIXUVBZOfGN7N\nSmVYPNYvSQ0rUmqa64iFonWGqKbzgV3FKccpNocHt2fPRslYhOkAa+GqspAU\n5iK4\r\n=hh94\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLnyXozfLLxz5Eh7DIxICNjVivEzM+a78dm4VFFf+FkgIhANLWfHzZhcWqyWXRM3efUjWRVBD/zunO/PFwEcIj4kBf"}]},"maintainers":[{"name":"itajaja","email":"giacomo.tag@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.1.2-alpha.1_1551237086913_0.9216827770574252"},"_hasShrinkwrap":false},"0.2.0":{"name":"@4c/selenium-sandbox","version":"0.2.0","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","fetch-mock":"^7.3.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"taion","email":"tesrin@gmail.com"},"dist":{"integrity":"sha512-kTkFN8taiog697SlbUbfCH2rCyILb/wahIee+3cR6td/E5P4+YQ/grPeaDyzKZMXflqSQ7n+MO4E7uR7LwNshA==","shasum":"49a63f39a7446b7fe045b288bfe838f66d89f277","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.2.0.tgz","fileCount":14,"unpackedSize":17096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc99hXCRA9TVsSAnZWagAALc0QAKDXUs3uLl7bqRlM4thA\n3ZRrae5fvW0XOCKYTRx1FZBYect4fuq2DczlDEaMAXNi3mBYrQUWbEXXa2Kz\navhzI5bs3P492GpIrF5rnqgzlz9mvJCDWH3DxHNwiddwnuzxiyYuK7NstTmC\nWnPUI+wOahCBraVX0bCMlfTcUDhRUVpVb25FYojyX69L8OVqjoPBrpmhPX7M\n0aDAliwTyQq8eIL/pZAlqlBsdm+eXWaIv60GQqDcqYpFE3G5gN//d6W1W2wa\nq/u4R9M2ytGiMTLEi4/EUzfQukOoBDvkSnkj1qCqZP6Q2HUnBL34yuF1Rc/Q\nfGlHCwgftgQcfBHAl464307XGmkQjiUqRRsje263yluP2JvBdi+K+lZYAcSJ\ng09zls9aPs6YB6YQ7mJtSIa/gm1COYkNkRitLSpLXtebujc+vkrZoFe7TvDZ\n2iovKIWadTf+SAOd61znpLX1YnBRc41lSNesE6lbrmKRSim29wOHPxk3IB2g\nUM+YSpo7uTcUaRuy8bDItxUbG4XZIilZWE+Ag0rkFP24nGj5waytXFt79TdO\nt5E7x/15r0y45XVy5tQdYE/mJVgREsT5IJ8LbDmUX+XiwtDBE4H6wPPpnzxX\nwrq4VS7QpAMNkxeRzhEb1w/EY7obgy25TgDR87ZohtaeYT0Mn+HSfdE4kx5T\nV41x\r\n=RavQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqljF822AjLXYDI6nl+LbQFAyONhTaQAyg2kwBb/LczwIhALffcqAsZ15ddVTYEsw98sK3Ptt7FkGgiUDE+OjvaW2o"}]},"maintainers":[{"email":"giacomo.tag@gmail.com","name":"itajaja"},{"email":"monastic.panic@gmail.com","name":"monastic.panic"},{"email":"sloria1@gmail.com","name":"sloria"},{"email":"tesrin@gmail.com","name":"taion"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.2.0_1559746646114_0.6921484816799861"},"_hasShrinkwrap":false},"0.2.1":{"name":"@4c/selenium-sandbox","version":"0.2.1","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"importSort":{".js, .ts, .tsx":{"parser":"import-sort-style-4catalyzer/parser-ts","style":"import-sort-style-4catalyzer"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","import-sort --write","git add"],"*.{json,css,md}":["prettier --write --ignore-path .eslintignore","git add"]},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib","conventionalCommits":true},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^23.3.13","@types/selenium-webdriver":"^3.0.14","@4c/fetch-mock":"^8.0.0","selenium-webdriver":"^4.0.0-alpha.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.2.1","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-j94e+TD4iApPFeNecCp4UCWMCSDUte7WbfJT8mwHfb6ERh13QnNHm8ACCg0fOVg1CE8qyA4PH914+znCgxO2UQ==","shasum":"f93ec750d2b804f87db3a80f4ca48954dd59bf45","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.2.1.tgz","fileCount":14,"unpackedSize":17141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFPcMCRA9TVsSAnZWagAA4QIP/18HRw14bVeEcWxvuszO\ngE56O3CKUVOlTucXwMnRwa1c1c/0lZqJFWmONt8u/ekTB6bwC7fHFHQtjIks\nvE//OjyIss09iiXubAL1FxTuHaWKQ+jraFqCyJ17j62UZGhU0n4Myi7urLbK\n5evRNO+nJ75cdzBb1guk2Re976/rhg+xJQ1Jzya0/zT5PBWgyaT3OBuxeZPR\nYv284Cfg3aQdFd8fwBCyU0ehByypFsUVc2fGZ4vOt1FgFM8GE/KdG/rtIBqH\nVLM93nb607Ib0oj+8HlGE5ieg3DFJRRphF97vLwkeSGjcXLora2hq2gK41q1\n9e6SJQYmdMCRRPGif0aRnQoBAbNXKpCK3V7EZZOwa3fGF30xgQdwtU6HbwVP\nYnjkKRsgtvzWiZS4AqH0xgMv2ZXCwhR0AVWZL/J1YCSiGGXexSa3zXuc2e7M\nxcrNSlS/qM/UyEunlhpGlfF6/Soj7RGerVktE6BoUvchLvwdFmK1jyrhvWoN\nAXQ0zdHyPM0V4NOF7TzHaFoJ+IPAwUnximPyV/YDFKS9lwAva4hUoR6dOeyQ\nAaWwB7NxUuEFdGgRXBi7G61TKfCKD3dePcTaJtTcYSHF6KmUWk2YTKXP+u1t\nNMDXPZ62/gDaGNtTdx/GfwLEULK86dovqrizQ3Jz5iHotle5VaY0ctHjB8E3\n5bje\r\n=NOsQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6vPzSmaWAqQPsHGCZgD+o5wcxgQLnMK7nK5YwXQfONAiEA7dotVSyBzgxzVTb7lfGcwwp4OhLrBBkad+r1EZ+I1qY="}]},"maintainers":[{"email":"giacomo.tag@gmail.com","name":"itajaja"},{"email":"monastic.panic@gmail.com","name":"monastic.panic"},{"email":"sloria1@gmail.com","name":"sloria"},{"email":"tesrin@gmail.com","name":"taion"}],"_npmUser":{"name":"monastic.panic","email":"monastic.panic@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.2.1_1561655051096_0.8043634848838592"},"_hasShrinkwrap":false},"0.2.2":{"name":"@4c/selenium-sandbox","version":"0.2.2","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","scripts":{"babel":"babel src --ignore **/__tests__ --delete-dir-on-start -x .js,.ts,.tsx","build:types":"tsc --emitDeclarationOnly --outDir lib","build":"yarn babel -d lib && yarn build:types","prepublishOnly":"yarn run build","release":"rollout","tdd":"jest --watch","test":"yarn lint","testonly":"jest","eslint":"eslint . --ext .js,.ts,.tsx","prettier":"prettier --ignore-path .eslintignore '**/*.{json,css,md}'","lint":"tsc --noEmit && yarn eslint && yarn prettier --list-different","format":"yarn eslint && yarn prettier --write"},"publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":"eslint --fix","*.{json,css,md}":"prettier --write --ignore-path .eslintignore"},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib","conventionalCommits":true},"devDependencies":{"@4c/babel-preset":"^8.0.1","@4c/jest-preset":"^1.5.3","@4c/rollout":"^2.1.11","@4c/tsconfig":"^0.3.1","@babel/cli":"^7.12.1","@babel/core":"^7.12.3","@babel/preset-typescript":"^7.12.1","@types/node":"*","@typescript-eslint/eslint-plugin":"^4.6.1","@typescript-eslint/parser":"^4.6.1","babel-core":"^7.0.0-bridge.0","eslint":"^7.13.0","eslint-config-4catalyzer":"^1.1.4","eslint-config-4catalyzer-jest":"^2.0.9","eslint-config-4catalyzer-typescript":"^3.0.1","eslint-config-prettier":"^6.15.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.0","eslint-plugin-prettier":"^3.1.4","husky":"^4.3.0","jest":"^26.6.3","lint-staged":"^10.5.1","prettier":"^2.1.2","typescript":"^4.0.5"},"dependencies":{"@types/fetch-mock":"^7.2.2","@types/jest":"^26.0.3","@types/selenium-webdriver":"^4.0.0","@4c/fetch-mock":"^8.0.0","selenium-webdriver":"^4.0.0-alpha.1"},"resolutions":{"//":"punycode v2 does not support browser clients","punycode":"^1.4.1"},"gitHead":"d4a7e9086f20a6f02ff8ec8d04d685a25c68e205","description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.2.2","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-vVZhCpAuWZ9TpiQ3qErB9l1UPs7OKRlkv3HP4ifWDou7MCg9Va6bfEqdPHDVmpvrux31eu2f0Jo7IRULyXjwMA==","shasum":"857fa4091b9d807bc6f48030447a54508c8ee0f3","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.2.2.tgz","fileCount":15,"unpackedSize":16974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqsEwCRA9TVsSAnZWagAAtakP/1Onzt8urCA6JXWGAYNu\nuG8x21RuiXd1dKiDg5eZCSIH282OigB8n2/V/39U0G87u5qeuQarfJilCeLe\nJB23KIUjTwH/K2BHF8B582Hcg6uWdLwXZ+qPC7GJ7V0ex2YWfZ0o2WoHlvad\nD8lnOgGWoXW78pP7XmSlB0A/0ZizPkcNi8t0se+wX8dUw5+QAv+EkouH1diu\nW5nw4//4OefZjKezKhE+Clw0wAac3nlSv6E5gvOsMemxOoCKbgx1Ad4lzE51\nvkMQy3jA3eJAzP5DhotKdIGfjBgo+PpQAQiggGies8rwE2FjL7V6fHjEDq8S\nzP+OocEb7qoKkowQLN8eE02RU46aWnxxae3yw1pifWx4/FW2agHwieLznJ6d\neq2EEGCY+ewOxxA0JbkSDsovO+mluivtwV5pvWVQdYRslOFhq56xym5Zc7BV\nd3r2yTGXfeeRrU+mzaq/5UfiWtpNb666r2aGD6at+Dfk2X9+Aq3C+O0z2Dlt\nL9DsJmHdNC8EEmYgNyF+VKf5c88RU1JTY2UxQjfESAs4RETgFzP9hlLDyHGn\nbVLL1N0tXoX8UMHb/3jyDYfqvTeU5UNJKL+gfqk1O4C5rG0htOtIcO4qA3ex\nUpOwoh9anZFOWxxADZenyiljbnSCf6PvTg7lHG/9uQ2xj5dllwqJtOUhz5e0\nfh3H\r\n=A/Le\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF99AGt0hRhk+Ko/cPE4JRYq3nww37nb8XLIWrokJwWHAiBzreIip7vmwWNa/cXP2YjP+tSUbgb2z6jJI4nrY9aitw=="}]},"_npmUser":{"name":"itajaja","email":"giacomo.tag@gmail.com"},"directories":{},"maintainers":[{"name":"everes","email":"ethanveres@gmail.com"},{"name":"sloria","email":"sloria1@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"itajaja","email":"giacomo.tag@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.2.2_1605026096302_0.7924172918385364"},"_hasShrinkwrap":false},"0.2.3":{"name":"@4c/selenium-sandbox","version":"0.2.3","main":"browser/index.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","publishConfig":{"access":"public"},"prettier":{"printWidth":79,"singleQuote":true,"trailingComma":"all"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":"eslint --fix","*.{json,css,md}":"prettier --write --ignore-path .eslintignore"},"jest":{"preset":"@4c/jest-preset","testEnvironment":"node"},"release":{"publishDir":"lib","conventionalCommits":true},"dependencies":{"@4c/fetch-mock":"^8.0.0","@types/fetch-mock":"^7.3.3","@types/jest":"^26.0.16","@types/selenium-webdriver":"^4.0.10","selenium-webdriver":"^4.0.0-alpha.8"},"resolutions":{"//":"punycode v2 does not support browser clients","punycode":"^1.4.1"},"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"},"homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","_id":"@4c/selenium-sandbox@0.2.3","_nodeVersion":"14.15.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-Jdu/a5qTopDre9VZwzw5KwVSXijvx96UJ7nVn2NYykNKS2fmS36Bf8yl3oLudppWEUSmnDiOvFUFKZe5LeKrSg==","shasum":"78c24d5fbbc6b90c5de8c0263ccb0c31a0fae389","tarball":"https://registry.npmjs.org/@4c/selenium-sandbox/-/selenium-sandbox-0.2.3.tgz","fileCount":12,"unpackedSize":17094,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfznbuCRA9TVsSAnZWagAAWwgP/38W7E5aOQU0SLZSr3MJ\ntPmnMp8HuAze2pN9u5m6vLVS0gIN0dcwgh62L16+XUag0+1P81HQlcBtq02h\nX8PZpDtEJcjhHrqNpgNsyRNGlMEifGD+qRUsTXmc+qpDRlzJMnlZtLWfDU9z\nAs8cgt7vTwfwrBOYSTDglnHP5CorsLnyqEAE5dbrQAJB0xLFNM9E0tRkXigO\njI0krvBQ/+NPFDejGOE+Ff5vKaMXprbtsBJi1jPIDYAV74kaPODAeaaGHeiT\niQJsJ7IhkBAfm00dMEks0ceDyVePzKI08DOimH+RjfpceezbI4rb7Nx6d8fG\nn5C9/rJPE8L210blw6eC1yo2dDKg/d/GupSOvw5fS+AiFT4Ni3qQOySbIl/1\nESPg3FldlQWVrcpqtmiyxo2v0o95KyKPLg6zroIETI6yAaK6IiWEsn5lrSpY\nIv+NnegfBSAppFiUvbtDq6iSnoA1DH21U3raln70HdKUI3O5hrWpEWSOQpHX\nURFEjEUdCAvUtDheY2JSuGS+KGX+hUPxLYe1IGH1BiX1kFTThWGyKj5q94wX\nVf0QtGcJuX829wNDaWcdMqkLsB2FKQWxbK9WM7mTBUDEk23gcDELbNPyptdC\nPkhRGigsqUb3VecakzfrKom2LtucqzEpXuHzBWo4nul2bG5WiuBpFXihVNmu\niNiG\r\n=8q1x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFKmBcI4IV4AROrcCke+CKAxm+i97AhsN6HkiaLvJNNAiBuMqqMUmkQEqaSjzWU2jznVZYHW7FeAMFMK3cwiCubJA=="}]},"_npmUser":{"name":"monastic.panic","email":"monastic.panic@gmail.com"},"directories":{},"maintainers":[{"name":"everes","email":"ethanveres@gmail.com"},{"name":"sloria","email":"sloria1@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"itajaja","email":"giacomo.tag@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/selenium-sandbox_0.2.3_1607366382338_0.30489214758941174"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-02T22:29:35.365Z","0.1.0-alpha.1":"2019-02-02T22:29:35.638Z","modified":"2022-04-08T14:00:57.815Z","0.1.0-alpha.2":"2019-02-02T22:45:26.467Z","0.1.0-alpha.3":"2019-02-02T23:14:41.791Z","0.1.0-alpha.4":"2019-02-02T23:20:33.377Z","0.1.0-alpha.5":"2019-02-02T23:25:51.247Z","0.1.0-alpha.6":"2019-02-04T15:21:30.711Z","0.1.0-alpha.7":"2019-02-04T16:31:22.182Z","0.1.0-alpha.8":"2019-02-06T13:08:28.807Z","0.1.0-alpha.9":"2019-02-06T16:24:52.509Z","0.1.0":"2019-02-07T18:47:34.395Z","0.1.1":"2019-02-26T02:57:30.573Z","0.1.2-alpha.1":"2019-02-27T03:11:27.188Z","0.2.0":"2019-06-05T14:57:26.364Z","0.2.1":"2019-06-27T17:04:11.246Z","0.2.2":"2020-11-10T16:34:56.494Z","0.2.3":"2020-12-07T18:39:42.495Z"},"maintainers":[{"email":"stephen.liu@alumni.stanford.edu","name":"stephen_liu"},{"email":"monastic.panic@gmail.com","name":"monastic.panic"},{"email":"sloria1@gmail.com","name":"sloria"}],"description":"easily mock a web application accessed through selenium. Contains also an environment for integrating with jest.","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/selenium-sandbox.git"},"author":{"name":"4Catalyzer"},"license":"MIT","readme":"# selenium-sandbox\n\neasily mock a web application accessed through selenium. Contains also an environment for integrating with jest.\n\n## Getting started\n\n### 0. Install\n\n    yarn add -D @4c/selenium-sandbox\n\n### 1. Add the sandbox to your test client\n\nFirst, we need to instrument our application to use the sandbox environment. Create a module (let's call it `injectSandbox.js`)\n\n```js\nimport sandbox from '@4c/selenium-sandbox/browser';\n\nconst store = {\n  widgets: [],\n};\n\n// additional properties and methods that can be accessed from selenium. for example here we are passing a store object\nconst context = { store };\n\nsandbox.setupTestContext(context);\n\nsandbox.fetchMock.mock('path:/api/v1/widgets', () => store.widgets);\n```\n\n> **Note**: documentation for `fetchMock` can be found [here](https://github.com/wheresrhys/fetch-mock)\n\n### 2. Instrument Selenium\n\nAdd utilities to an already existing selenium driver (v4):\n\n```js\nimport { augmentDriver } from '@4c/selenium-sandbox/webdriver';\n\nconst driver = augmentDriver(\n  myBaseSeleniumDriver,\n  'http://sandboxed-app-to-test',\n);\n```\n\n... Alternatively you can use buildDriver to instantiate a reasonably opinionated driver:\n\n```js\nimport { buildDriver } from '@4c/selenium-sandbox/webdriver';\n\nconst driver = buildDriver(\n  baseUrl: 'http://sandboxed-app-to-test';\n  seleniumAddress: 'localhost:5000/wd/hub';\n  browserName: 'chrome';\n  screenSize: [1024, 768];\n  // optional\n  mobileEmulation: {\n      deviceName: 'iPhone 6/7/8',\n  };\n);\n```\n\n### 3. Usage\n\nTo mock:\n\n```js\nawait driver.get('my/page');\nawait driver.executeInBrowser(context => {\n  context.store.widgets = [{label: '1', label: '2'}]\n}\n\nconst button = await driver.find('//button[text()=\"Get Widgets\"]');\nawait driver.click(button);\n```\n\nIf a request needs to be mocked _before_ page loading, you can use `executeAtStartup` instead of `executeInBrowser`. the code will be stored in storage and executed when the assets are loaded\n\n> **Note**: Since the function passed to `executeInBrowser` or `executeAtStartup` needs to be stringified in order to be executed in the remote browser, it cannot access variables defined outside of its body.\n\nYou can also access fetchMock from the context to make additional mocks:\n\n```js\nawait driver.executeInBrowser(context => {\n  context.fetchMock.mock('path:/api/v1/users', () => ['user1', 'user2'])\n}\n```\n\nSince `fetchMock` is part of the context, it can be used to make assertions on the requests. There are two helper methods on the driver to facilitate that:\n\n```js\nconst request = await driver.getLastRequest();\ninvariant(request.headers.Authorization == 'Bearer XXX');\n\nconst requests = await driver.getRequests();\ninvariant(requests.every((req) => req.headers.Authorization == 'Bearer XXX'));\n```\n\nthe driver has also the following utilities methods:\n\n```js\n// more resilient than element.click, will retry several times to avoid flakiness\nawait driver.click(element);\n\n// accepts an xpath query and returns the first match. It will wait that all\n// images are loaded and that the element is indeed visible\nawait driver.find('//button[text()=\"Get Widgets\"]');\n\n// unlike the base webdriver, allows to pass a path which is concatenated\n// to `baseUrl`\nawait driver.get('my/page');\n\n// the name says it all. Useful to make sure the page has finished rendering\nawait driver.waitForAllImages();\n```\n\n## Jest Support\n\nThere is also support for easy integration with Jest.\n\n### Environment\n\nadd the following line to your jest config:\n\n```js\n{\n  // ...\n  testEnvironment: '@4c/selenium-sandbox/jest/environment.js',\n  setupFilesAfterEnv: ['@4c/selenium-sandbox/jest/setup.js'],\n  testEnvironmentOptions: {\n    baseUrl: 'http://sandboxed-app-to-test',\n    seleniumAddress: 'localhost:5000/wd/hub',\n    browserName: 'chrome',\n    screenSize: [1024, 768],\n    // optional\n    mobileEmulation: {\n        deviceName: 'iPhone 6/7/8',\n    },\n    // optional, default 10000\n    waitTimeout: 50000,\n  },\n}\n```\n\nthis will:\n\n- declare a global `browser` variable as described above\n- set a 10s timeout which is a better fit for selenium tests\n- add a snapshot serializer specific to fetchMock requests\n\n## TypeScript Support\n\nType definitions come out of the box. For full jest support, you should add the following declaration to be used in your test file:\n\n```ts\nimport { AugmentedDriver } from '@4c/selenium-sandbox/webdriver';\n\n// define a context type that reflects the context passed in `setupTestContext`\ntype Context = {\n  store: {\n    widgets: {}[];\n  };\n};\n\ndeclare const browser: AugmentedDriver<Context>;\n```\n","readmeFilename":"README.md","homepage":"https://github.com/4Catalyzer/selenium-sandbox#readme","bugs":{"url":"https://github.com/4Catalyzer/selenium-sandbox/issues"}}