Check Internet Connection Before Start the Web Base Process

Hi Tharindu, you can try making a flow chart like this as the start node of your activity:

  1. Make a Flowchart activity and set it as start node, then open it.
  2. Assign Activity, on the To bar (first box) press Ctrl+K then make a variable called InternetStatus then open the Variables Tab and set it as a Generic Value. Then at the Value bar (second box), type System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()
  3. Next is make a decision flow with the condition InternetStatus = True
  4. On the left activity, (which is the true node - if InternetStatus is true) then make a message box saying internet connection found)
  5. On the right activity, (which is the false node - if InternetStatus is false) then make a message box saying internet connection is not found then point it back to the assign activity. This will keep prompting the activity to loop until the internet connection is available.

Hope this makes it clear, if you have questions kindly ask :slight_smile:

Regards,
Mc

3 Likes