laravel / browser-kit-testing

Provides backwards compatibility for BrowserKit testing in the latest Laravel release.
MIT License
509 stars 75 forks source link

Ajax request in form cannot see selection #60

Closed sl5310 closed 6 years ago

sl5310 commented 6 years ago

If the select box's data is populate by a ajax call, unable to get options of the select box

nafiesl commented 6 years ago

Yes, it is. As far as i know, browserkit test package does not work with javascript alerts, text or anything dynamically generared by javascript (or ajax actions). It only works for text, form, fields, or html which generated by php.

You can use laravel dusk to test it.

driesvints commented 6 years ago

Heya, please use Dusk if you want to simulate a browser: https://github.com/laravel/dusk