Aug 19, 2018
0
Level 1
Resource serialization
Hey guys, I'm trying to implement a job that involves using a "fake" browser (selenium). The job is supposed to get me documents from a public access website and there is no API, so I'm basically "forced" to use a solution like this. If you have a better solution, I'm all ears :-) So, if I try to call the job class manually via tinker, selenium loads just fine. However, if I try to call the job via dispatch, I get the following error :
ErrorException: curl_setopt() expects parameter 1 to be resource, integer given in /Users/<stuff>/laravel/<otherstuff>/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:255
I may be wrong, but selenium uses a curl ressource, and I suppose it cannot be serialized.
What can I do to make it work ?
Thanks in advance.
Please or to participate in this conversation.