src/Concerns/MakesAssertions.php
public function assertFocused($field)
    {
        $element = $this->resolver->resolveForField($field);

        PHPUnit::assertTrue(
            $this->driver->switchTo()->activeElement()->equals($element),
            "Expected element [{$field}] to be focused, but it wasn't."
        );

        return $this;
    }
public function assertFocused($field)
    {
        $element = $this->resolver->resolveForField($field);

        PHPUnit::assertTrue(
            $this->driver->switchTo()->activeElement()->equals($element),
            "Expected element [{$field}] to be focused, but it wasn't."
        );

        return $this;
    }
public function assertFocused ( $ field ) { $ element = $ this -> resolver -> resolveForField ( $ field ) ; PHPUnit :: assertTrue ( $ this -> driver -> switchTo ( ) -> activeElement ( ) -> equals ( $ element ) , "Expected element [{$field}] to be focused, but it wasn't." ) ; return $ this ; }
Assert that the given field is focused.

@param  string  $field
@return $this
Assert that the given field is focused .