0

セレンは初めてです。テキストを期待されるデータと比較できるように、selenium/java を使用してポップアップからテキストを取得する方法を見つける必要があります。

とにかく、ポップアップからテキストを抽出できるものはありますか?

前もって感謝します。

フォローしてみましたが、うまくいきませんでした

WebElement lMail=driver.findElement(By.xpath("//span[text()='ACE'][@class='footer-title twc-blue twc-roundbook']"));

        new Actions(driver).moveToElement(lMail).perform();


        Actions act = new Actions(driver);
        WebElement age_purpose = driver.findElement(By.xpath("//div[contains(@class, 'popover ng-scope ng-isolate-scope top fade in')]/div/div[@class='popover-inner']"));
        act.moveToElement(age_purpose).perform();
        String tooltiptextreal = age_purpose.getAttribute("innerHTML");[enter image description [enter image description here][1]
4

0 に答える 0