Converting python to java

50 views
Skip to first unread message

Chico Gatsby

unread,
Jan 10, 2020, 2:05:35 PM1/10/20
to Selenium Users
I want to convert this line of code to java.

from selenium import webdriver
driver = webdriver.Safari(executable_path='/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver')

Nil G.A.

unread,
Jan 12, 2020, 1:05:01 AM1/12/20
to Selenium Users
this should work:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.safari.SafariDriver;

public class test {
   
public static void main(String[] args) {
       
WebDriver driver= new SafariDriver();

   
}

}




Reply all
Reply to author
Forward
0 new messages