Вот что я сделал:
Код: Выделить всё
((IJavaScriptExecutor)driver).ExecuteScript("document.querySelector('meta[name=viewport]').setAttribute('content', 'width=device-height, height=device-width, initial-scale=1');");
Есть ли у вас какое-либо решение для этого в C# Selenium ?
Подробнее здесь: https://stackoverflow.com/questions/791 ... selenium-c
Мобильная версия