Check Connection Internet delay Selector?

connection

#1

Hi everyone,
I have some questions:

  1. Is there a way to check lost internet connection?

  2. In case of connection to the internet is lag and I need to click on a button on that site. I think of a way:
    Use Element Exists to check Selector, if not, then I let Element Exists check Selector after some time.
    Do you have any better ideas?

Thank,


#2

Hi @longnt23,

System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable.ToString

It will give you the result in Boolean value whether you have internet connectivity or not.

Yes it’s correct before clicking you can make sure the element is available or not…it will return the Boolean value.

Regards,
Arivu