Right click

    xiaoxiao2021-03-25  93

    Methods 1: RemoteWebElement e = (RemoteWebElement) d.findElement(By.id("2003167469")); Coordinates where = e.getCoordinates(); d.getMouse().contextClick(where); d.findElementByLinkText("Find player in draw").click();

    Mothods 2

    WebElement element = driver.findElement(By.id("2003167469")).findElement(By.tagName("a")); Actions a = new Actions(driver); a.contextClick(element).build().perform(); driver.findElementByLinkText("Find player in draw").click();

    转载请注明原文地址: https://ju.6miu.com/read-11922.html

    最新回复(0)