NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="icon"]//svg/g"}

Пытался найти решение проблеммы не получилось. Мне нужно кликнуть на кнопку в google earth, все элементы перепробовал ищя id,xpath,css, поставил даже, чтобы ждал появление эелемента, но он все равно его не видит и тп. Суть задачи, кликнуть на кнопку поиска места в google earth. Вот код

 IWebDriver bot = new ChromeDriver(str);
            bot.Navigate().GoToUrl("https://earth.google.com/web/@37.79077748,-122.3226842,2.28381776a,813.94155306d,35y,97.40715275h,45t,0r");

            //WebDriverWait iWait = new WebDriverWait(bot, TimeSpan.FromSeconds(60));
            // iWait.Until(ExpectedConditions.ElementIsVisible(By.CssSelector("#ink")));
             new WebDriverWait(bot, TimeSpan.FromSeconds(60)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@id=\"icon\"]//svg/g")));
            System.Threading.Thread.Sleep(60000);
            bot.FindElement(By.XPath("//*[@id=\"icon\"]//svg")).Click();

Без разницы ответ на чем будет, Selenium/Selenide Java/C#, главное решение. Ошибка вылетающая в selenide

Exception in thread "main" com.codeborne.selenide.ex.ElementShould: Element should be visible or transparent: visible or have css value opacity=0 {By.xpath: //*[@id="search"]}
Element: '<g id="search" displayed:false></g>'
Actual value: visible:false, 1

Я так понял, он невидимый, как мне изменить его значение?


Ответы (0 шт):