{"action":"closed","issue":{"url":"https://api.github.com/repos/lmc-eu/steward/issues/233","repository_url":"https://api.github.com/repos/lmc-eu/steward","labels_url":"https://api.github.com/repos/lmc-eu/steward/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/lmc-eu/steward/issues/233/comments","events_url":"https://api.github.com/repos/lmc-eu/steward/issues/233/events","html_url":"https://github.com/lmc-eu/steward/issues/233","id":377558030,"node_id":"MDU6SXNzdWUzNzc1NTgwMzA=","number":233,"title":"Trying to get Steward working with headless","user":{"login":"ShabariRepo","id":10635357,"node_id":"MDQ6VXNlcjEwNjM1MzU3","avatar_url":"https://avatars3.githubusercontent.com/u/10635357?v=4","gravatar_id":"","url":"https://api.github.com/users/ShabariRepo","html_url":"https://github.com/ShabariRepo","followers_url":"https://api.github.com/users/ShabariRepo/followers","following_url":"https://api.github.com/users/ShabariRepo/following{/other_user}","gists_url":"https://api.github.com/users/ShabariRepo/gists{/gist_id}","starred_url":"https://api.github.com/users/ShabariRepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShabariRepo/subscriptions","organizations_url":"https://api.github.com/users/ShabariRepo/orgs","repos_url":"https://api.github.com/users/ShabariRepo/repos","events_url":"https://api.github.com/users/ShabariRepo/events{/privacy}","received_events_url":"https://api.github.com/users/ShabariRepo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-05T19:56:47Z","updated_at":"2018-11-06T06:56:17Z","closed_at":"2018-11-06T06:56:16Z","author_association":"NONE","body":"Hi all,\r\n\r\nThis may just be a quick inquiry but im trying to get headless working with steward simple test.  Im sure im just missing something stupid\r\n\r\nScenarios:\r\n1. Non steward tests using just phpunit works with headless\r\n`./vendor/phpunit/phpunit/phpunit --verbose -c ./TestAch.xml`\r\n\r\n**Test Setup**\r\n```\r\npublic function setUp()\r\n    {\r\n        $options = new ChromeOptions();\r\n        \r\n        $desired_capabilities = new DesiredCapabilities();\r\n        $desired_capabilities->setBrowserName('chrome');\r\n        $caps = DesiredCapabilities::chrome();\r\n\r\n        $options->addArguments(['--headless', '--window-size=1920,1080', '--start-maximized']);\r\n        $desired_capabilities->setCapability(ChromeOptions::CAPABILITY, $options);\r\n\r\n        $caps->setCapability(ChromeOptions::CAPABILITY, $options);\r\n\r\n        $capabilities = DesiredCapabilities::chrome();\r\n\r\n        $this->_webdriver = RemoteWebDriver::create(\r\n            'http://localhost:4444/wd/hub',\r\n            $caps\r\n        );\r\n    }\r\n```\r\n\r\n2. Steward tests with passed params (capabilities) doesnt open in headless (opens browser)\r\n`./vendor/bin/steward run staging chrome --capability \"'chromeOptions':'args':['--headless', 'window-size=1024,768', '--no-sandbox']\"`\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"OndraM"}}