-2

I need to spot current Internet Service Provider name. Is there any way to do something like:

(PSEUDOCODE):

String currentISP = driver.getCurrentISP();
if (currentISP == "Washington State University") {
// etc
}

else {
//
}
PeeHaa
  • 71,436
  • 58
  • 190
  • 262
Buras
  • 3,069
  • 28
  • 79
  • 126

1 Answers1

1

Use driver.getCurrentURL() to get the url.

Convert that to the IP using this solution

Finally, go from IP to ISP using some other webservice. SO has multiple questions with distinct answers, so I won't post one here.

Community
  • 1
  • 1
Nathan Merrill
  • 7,648
  • 5
  • 37
  • 56