zenstruck / browser

A fluent interface for your Symfony functional tests.
MIT License
186 stars 17 forks source link

Allow `Browser::click()` to work with css selector #60

Closed Nyholm closed 2 years ago

Nyholm commented 2 years ago

I want to be able to click on anything. We have some weird javascript that hide away a checkbox...

This only support selecting an element by ID. I am not sure how to implement it better.

Nyholm commented 2 years ago

Woho! I found out how to use CSS selectors =)

kbond commented 2 years ago

I think I'd prefer to merge into the click method if you don't mind.

Nyholm commented 2 years ago

Sure!

kbond commented 2 years ago

Thanks @Nyholm! Released in v0.8.0.

Nyholm commented 2 years ago

Awesome. Thank you for the quick response!