Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object of class Symfony\Component\DomCrawler\Crawler could not be converted to string #75

Open
mgrechanik opened this issue Nov 19, 2024 · 0 comments

Comments

@mgrechanik
Copy link

Hi.
I am writing a functional test.
For html

<button type="submit" class="btn btn-success" name="start_game" value="yes">Start new game</button>

my test code

$I->seeInField(['name' => 'start_game'], 'yes');

produce this error.

Digging into your code I found that I was not supposed to try it with button input.
And this line of your library has mistake. $nodes is an object which has no __toString(), it cannot be inserted into string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant