How can I automatically connect to my company's wifi? My Samsung Galaxy S6 with Android 7.0 automatically connects to my home wifi when in range. However, in my company, it only shows me a notification that I can click on to connect to the company's wifi (which then makes me accept terms by clicking on a button every single time.)

Is there any way to make this at least partially automatic, i.e. opening the page with the button automatically instead of just showing a notification? Or even saving my answer to this wifi page and using it during the next connection attempts?
It can be completely automated.

First, you need to know how button click data is submitted to the server: GET (less likely) or POST

If data is submitted to server using GET, just record the URL after submission. If data is submitted using POST, intercept the HTTP header when you click the button (there are lots of softwares for that; for example this Chrome plugin can log everything).

Now, install Tasker in your Android device.


Set Trigger as State ~> Net ~> Wi-Fi Connected and enter SSID of company Wi-Fi.
Set Action as Net ~> HTTP GET or Browse URL if button click data is submitted using GET. Otherwise, set Action as Net ~> HTTP POST or HTTP Head and enter the intercepted HTTP head data.