Hey Ashihs how are you hope everything going well. Unfortunately I can't launch any browser with selenium 4.150 | Selenium Forum
S
SM Rana Posted on 10/11/2023

WebDriver driver;

System.setProperty("webdriver.chrome.driver", "C:\\Batches\\WebDriver\\chromedriver-win32\\chromedriver.exe");

driver=new ChromeDriver();

driver.get("https://www.qtpselenium.com/");

driver.findElement(By.xpath("")).sendKeys("");

 

=========================================================

TestNG] No tests found. Nothing was run

Usage: <main class> [options] The XML suite files to run

Options:

-alwaysrunlisteners

Should MethodInvocation Listeners be run even for skipped methods

Default: true


M
mdsapon Replied on 14/11/2023

WebDriver driver;

System.setProperty("webdriver.chrome.driver", "C:\\Batches\\WebDriver\\chromedriver-win32\\chromedriver.exe");   ----> Delete this line, you don't have to mention chromedriver anymore

driver=new ChromeDriver();

driver.get("https://www.qtpselenium.com/");

driver.findElement(By.xpath("")).sendKeys("");