How to implement keys.ENTER in testng Hybrid framework
How to implement keys.ENTER in testng Hybrid framework
M
Posted on 09/09/2015
Hi,
I am trying to implement hybrid framework with testng.
Is there any way to implement sendkeys with value Keys.ENTER in keywords xlsx file and keywords.java? driver.findElement(By.xpath("//*[@id='mspCategory']")).sendKeys(Keys.ENTER);
M
Replied on 11/09/2015
Yes you can make a custom keyword for that..like "SimulateKey" You can pass over the key and xpath to it