'What the difference between Invoking Selenium class in Server using Html button and executing in CommandLine

1. I tried to Execute selenium class in Server by clicking html button but it not invoke but when i execute the testcase class in command line it works. Can anyone help me out...

2. In Selenium Script i want to run script without set Property to specify driver path and my project is neither maven nor i can set environment variable as i want to invoke selenium script in tomcat server by using html button

WebDriver driver = new ChromeDriver();
driver.get("http://localhost:8080/first/index2.html");


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source