Question: how to select value from dropdown using javascriptexecutor?
Answer: WebElement select = driver. findElement(By.id("type")); ((JavascriptExecutor)driver). executeScript("var select = arguments[0]; for(var i = 0; i < select.