Skip to content

method attachFile shown in wiki does not appear to exist #37

@edgreenberg

Description

@edgreenberg

Thank you for your excellent package modelizer/laravel-selenium.

I am trying to test an uploaded file with:

            ->see(sprintf('Add an Image to %d', $this->Lodge->lodge_number))
            ->attachFile('image',  __DIR__.'/lodge81.jpg')
            ->type('My Image Description for '.$this->Lodge->lodge_name, 'description')
            ->press('Add Image!')

The error I get is:
You cannot call a command with multiple method arguments.

The traceback points to the line containing ->attachFile

I am running modelizer/selenium 1.2.2.

I looked through my entire vendor directory, and cannot find attachFile.

What do I need to do?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions