public function amOnAction($action, $params = [])
    {
        $namespacedAction = $this->actionWithNamespace($action);

        $domain = $this->app['routes']->getByAction($namespacedAction)->domain();
        $absolute = ! is_null($domain);

        $url = $this->app['url']->action($action, $params, $absolute);
        $this->amOnPage($url);
    }
public function amOnAction($action, $params = [])
    {
        $namespacedAction = $this->actionWithNamespace($action);

        $domain = $this->app['routes']->getByAction($namespacedAction)->domain();
        $absolute = ! is_null($domain);

        $url = $this->app['url']->action($action, $params, $absolute);
        $this->amOnPage($url);
    }
public function amOnAction ( $ action , $ params = [ ] ) { $ namespacedAction = $ this -> actionWithNamespace ( $ action ) ; $ domain = $ this -> app [ 'routes' ] -> getByAction ( $ namespacedAction ) -> domain ( ) ; $ absolute = ! is_null ( $ domain ) ; $ url = $ this -> app [ 'url' ] -> action ( $ action , $ params , $ absolute ) ; $ this -> amOnPage ( $ url ) ; }
Opens web page by action name

```php
<?php
$I->amOnAction('PostsController@index');
?>
```

@param $action
@param array $params
Opens web page by action name