Rank: Member Groups: Member
Joined: 3/21/2020 Posts: 14
|
https://www.google.com/click "search by image", how to simulate uploading a local image ( C:\\1.jpg)?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,245
|
Hi,
There is no simple way for you to automate this process because the page uses a complex flow of multiple requests that uses both JavaScript code to read/process the file and also security cookies. It is possible for you to simulate a simple file upload request by formating the correct Request object and then call WebView.LoadRequest to post the file to the server. However it is not possible to simulate the complex JavaScript code processing used by Google using this approach.
Thanks!
|