public function amOnAction($action, $params = [])
    {
        $route = $this->getRouteByAction($action);
        $absolute = !is_null($route->domain());
        $url = $this->app['url']->action($action, $params, $absolute);

        $this->amOnPage($url);
    }
public function amOnAction($action, $params = [])
    {
        $route = $this->getRouteByAction($action);
        $absolute = !is_null($route->domain());
        $url = $this->app['url']->action($action, $params, $absolute);

        $this->amOnPage($url);
    }
public function amOnAction ( $ action , $ params = [ ] ) { $ route = $ this -> getRouteByAction ( $ action ) ; $ absolute = ! is_null ( $ route -> 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