But, there is no one solution to this problem of laptop connected to WiFi but no internet access. The solution to fix this WiFi problem is totally depending upon the root cause of it. It might be possible that the hardware or firmware of your WiFi router not working properly.
Mar 21, 2020 2 Solutions for Wireless Security Cameras without Internet Nov 14, 2019 Why cannot I access the Internet after successfully
While the wireless card will access the local wireless network on boot up, I've had it get internet connection only once since install. At first I thought that this might be a DNS resolution issue with the wireless network, but since other machines are able to connect, I doubt that this is the case.
Nov 12, 2013 Wifi connected but unknown network and no internet access
Wireless connected but no internet access [Solved] - WiFi
Secure Your Wifi Connection – How To Lock Out Wifi