-
Notifications
You must be signed in to change notification settings - Fork 283
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
Call to undefined method HeadlessChromium\Page::sendFile() #643
Comments
This method only exists in the |
But how can I use it? Can you please give me an example? |
Is this the way I should use it?
It gave the same error:
What do i do? Tell me more please.... |
Adding the Dom namespace to your code won't do anything, you are still using the mouse class instead of the dom class. There are examples on how to use this class in the readme: https://github.com/chrome-php/chrome?tab=readme-ov-file#interacting-with-dom |
I just did it and it keeps giving me another error. Here's my code:
Here's my errors:
What do i do to fix them? |
I think you lack the basic knowledge about programming in general to accomplish this. You are still using the mouse class here: $page->mouse()->find('.ZdLswd', 2)->click(); And when you try to use the dom, there is no node selected. You need to understand how the classes work. Trying random things like that won't work, you'll find another error each time. All the errors you sent here are not related to this lib, they are normal php errors that a dev should be able to easily understand and troubleshot. I understand you are a beginner, but you probably picked up a project that is too complex for your capabilities. If you are struggling with simple things like this, soon you'll find issues way harder to solve. The css class |
This result works fine. I've corrected it, but when the file is uploaded to Google Translate, it doesn't display its size like Google Translate. It only displays “con.pdf 0 Byte”, whereas if I do it myself in Google Translate it displays “con.pdf 431.1Kb”. What can I do? Here's my code:
|
This issue has been automatically marked as stale because there has been no recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions. |
I'm trying to send a PDF file as input on a site and I had used this code:
But the problem it give me an error, what to do please?
Here's my errors:
How can I fix this error?
The text was updated successfully, but these errors were encountered: