File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public class Example {
1414
1515 public static void main (String [] args ) {
1616
17- String ProxyServer = "gate.smartproxy .com" ; //Proxy host:port configuration
17+ String ProxyServer = "gate.decodo .com" ; //Proxy host:port configuration
1818 int ProxyPort = 7000 ;
1919
2020 String sHttpProxy = ProxyServer + ":" + ProxyPort ;
@@ -34,7 +34,7 @@ public static void main(String[] args) {
3434 options .merge (options ); //Initializes the configured Chromedriver
3535
3636 WebDriver driver =new ChromeDriver (service , options );
37- driver .get ("http://ip.smartproxy .com/" ); //Target website
37+ driver .get ("http://ip.decodo .com/" ); //Target website
3838 WebElement body = driver .findElement (By .tagName ("body" )); //Select desired Element from your target website
3939 String bodyText = body .getText ();
4040 System .out .println (bodyText );
You can’t perform that action at this time.
0 commit comments