'What's wrong with maps and selenium (or my code)?

Help me please. I want to write a code for clicking on the building on the map. If i do it by my hands - it's ok.

https://www.google.com/maps/@57.9155533,59.9697661,18z

I click on the number of building and something is happening. But when I launch the code, map becomes inactive.

After launching

ChromeOptions opts = new ChromeOptions();
opts.addArguments("user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/100.0.4896.56 Mobile/15E148 Safari/604.1");
        
WebDriver driver = new ChromeDriver(opts);
driver.get("https://www.google.com/maps/@57.9152965,59.9705073,17.58z");

I can't press on the number of building. What's wrong with it? I can't do it by code and hands.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source