Finding difficult to find Wifi name

I have a requirement stating that I need to find the Wifi name. If the Wifi name is any of the organization’s Wifi, then I need to find the organization’s name.

In this Katalon how can I find, In which Wifi , the user is connected.

perhaps you can use this to execute ipconfig or other relevant commands on your system and parse the output:

check also this:

println execCmd('Netsh WLAN show interfaces')
public static String execCmd(String cmd) throws java.io.IOException {
 	java.util.Scanner s = new java.util.Scanner(Runtime.getRuntime().exec(cmd).getInputStream()).useDelimiter("\\A");
 	return s.hasNext() ? s.next() : "";
}

2 Likes

@discover.selenium i edited your post to use codeblock instead of quoting.
hint: use triple backticks top/bottom of the code instead of >
you can see the difference

2 Likes

Thanks for correcting me Ibus.

hi,

this will works too