3

You cannot test frontend using JMeter mainly due to its main constraint, as per JMeter project main page: JMeter is not a browser, it works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In ...


2

Did you try: elem.sendKeys(Keys.CONTROL,"a"); Output And about your code: It is failing because you are passing WebElement password = driver.findElement(By.id("passwd-login")); highlight1(high,password); Instead of WebElement password = driver.findElement(By.id("passwd-login")); highlight1(driver,password); Highlighted output:


2

Use the below function public static void highlight(WebDriver driver,WebElement element) { JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("arguments[0].setAttribute('style', 'background: yellow; border: 2px solid red;');", element); } Where driver is your WebDriver instance and element is the WebElement which is to be ...


Only top voted, non community-wiki answers of a minimum length are eligible