Skip to content

Commit 501cc26

Browse files
authored
Update example.java
1 parent 2d5de57 commit 501cc26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/chrome/example.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)