I am using the following the dump_wasm_module and dump_wasm_module_path flags in Selenium to try and dump the text representation of wasm modules (WAT) to disk. Here is how I use them:
chrome_options.add_argument('--dump_wasm_module')
chrome_options.add_argument('--dump_wasm_module_path=D:\\Downloads')
I also tried:
chrome_options.add_argument('--dump-wasm-module')
chrome_options.add_argument('--dump-wasm-module-path=D:\\Downloads')
When I visit the page that dynamically loads the wasm module, no files are outputted into the destination folder. I have tried both Chromium and Microsoft Edge browsers with this. Same result. No output files. I have also went to Sources to make sure the wasm files are loaded from the page.
I have found How to dump wasm?. Though, the answers do not help. The answers propose tools that convert binay wasm into WAT. Also, those tools do not produce the same result as the one that can be seen on developer tools. I know I can manually save WAT from developer tools but I want to automate the process.
I found those flags on:
https://codereview.chromium.org/1816583003/ https://codereview.chromium.org/2656103003/