{"id":15286640,"url":"https://github.com/pagantis/selenium-form-utils","last_synced_at":"2026-01-04T20:47:15.162Z","repository":{"id":55886798,"uuid":"142181380","full_name":"pagantis/selenium-form-utils","owner":"pagantis","description":"PHP Library. Selenium helper to end a test purchase. Helper to test the payment validation and redirection","archived":false,"fork":false,"pushed_at":"2020-12-11T09:57:56.000Z","size":112,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T10:39:37.475Z","etag":null,"topics":["composer","library","pagantis","selenium","test","vendor"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pagantis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-24T15:55:01.000Z","updated_at":"2020-03-16T12:20:03.000Z","dependencies_parsed_at":"2022-08-15T08:40:26.763Z","dependency_job_id":null,"html_url":"https://github.com/pagantis/selenium-form-utils","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fselenium-form-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fselenium-form-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fselenium-form-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fselenium-form-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pagantis","download_url":"https://codeload.github.com/pagantis/selenium-form-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175343,"owners_count":20572781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","library","pagantis","selenium","test","vendor"],"created_at":"2024-09-30T15:17:46.875Z","updated_at":"2026-01-04T20:47:15.136Z","avatar_url":"https://github.com/pagantis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium Form Utils \u003cimg src=\"https://www.pagantis.com/wp-content/uploads/2019/02/cropped-pagantis_logo-1.png\" width=\"100\" align=\"right\"\u003e\n\nCircleCI: [![CircleCI](https://circleci.com/gh/pagantis/selenium-form-utils/tree/master.svg?style=svg)](https://circleci.com/gh/pagantis/selenium-form-utils/tree/master)\n\n\n[![Latest Stable Version](https://poser.pugx.org/pagantis/selenium-form-utils/v/stable)](https://packagist.org/packages/pagantis/selenium-form-utils)\n[![composer.lock](https://poser.pugx.org/pagantis/selenium-form-utils/composerlock)](https://packagist.org/packages/pagantis/selenium-form-utils)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/pagantis/selenium-form-utils/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/pagantis/selenium-form-utils/?branch=master)\n\nSelenium Form Utils will help you when developing integration test of Pagantis. The utils will go pass Pagantis form to ensure you can test the Notification and the Redirection.\nBe sure that KO and OK controllers work. You can automate your testing using travis-ci or circle-ci.\n\n## How to use\n\nInstall the library by:\n\n- Downloading it from [here](https://github.com/pagantis/selenium-form-utils/releases/latest)\n\n- Using Composer:\n```php\ncomposer require pagantis/selenium-form-utils\n```\nFinally, be sure to include the autoloader:\n```php\nrequire_once '/path/to/your-project/vendor/autoload.php';\n```\n\nOnce the library is ready and inside the project the stub objects will available and\nthe ordersApiClient will also available.\n\n```php\n\n// Once the webDriver of selenium is inside Pagantis form, basically:\n// $webdriver-\u003egetCurrentUrl == 'form.pagantis.com/....'\n// Then you can use this tool to finish the form:\n\nSeleniumHelper::finishForm($this-\u003ewebDriver);\n\n//The method will end once the form is approved, so the current URL will be OK_URL of the order\n//Optionally you can also send the mobilePhone if the user is returning\n\nSeleniumHelper::finishForm($this-\u003ewebDriver, '600123123');\n\n\n```\n\nYou can also check the cancel action automated\n\n```php\n\nSeleniumHelper::cancelForm($this-\u003ewebDriver);\n\n```\n\n\n## To Develop and improve the library:\n\nafter doing the modifications please run the precised testing\n\n```bash\ndocker-compose up -d\n\ndocker-compose exec php php-7.1 vendor/bin/phpunit\n```\n\n## Help us to improve\n\nWe are happy to accept suggestions or pull requests. If you are willing to help us develop better software\nplease create a pull request here following the PSR-2 code style and we will use reviewable to check\nthe code and if al test pass and no issues are detected by SensioLab Insights you could will be ready\nto merge.\n\n* [Issue Tracker](https://github.com/pagantis/selenium-form-utils/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagantis%2Fselenium-form-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpagantis%2Fselenium-form-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagantis%2Fselenium-form-utils/lists"}