I understand that you wish to implement the functionality of interacting with a button on a webpage using MATLAB. There are a few things to keep in mind.
- If the webpage is implementing just a POST/GET request in the background after the button is pressed, the you might be able to use 'webwrite' to invoke simple POST requests to obtain the static html which would come after the button press.
- However, if the webpage is based on React/Angular or uses Javascript for DOM Manipulation, then MATLAB alone would not be able to implement the functionality as it does not directly deal with JavaScript.
- In that case, consider using selenium using python to interact with the webpage and simulate the button click and execute Javascript for DOM Manipulation. Then 'pyenv' function can be used in MATLAB to obtain the html from the python executable file, which can be used to demostrate data iun MATLAB.
The following MathWorks documentations can be referred:
'Call Python from MATLAB': https://www.mathworks.com/help/matlab/call-python-libraries.html
Thanks.