Skip to content Skip to sidebar Skip to footer

Firefox, Selenium, Todataurl, Uint8clampedarray And Python

I am accessing image data on Javascript. Now I'd like to pass this to Python process through Selenium API in the most efficient possible manner. Passing canvas data is easy with c

Solution 1:

Since your communication between Selenium and the browser through getEval is string based, I think that there is no escape from base64 encoding the image data. sending raw binary data will probably not be possible.

You can probably devise your own string encoding scheme, but it'll probably be as effective as the built in methods.

Post a Comment for "Firefox, Selenium, Todataurl, Uint8clampedarray And Python"