How to remove Scrollbar in ChromeDriver, how to change http-agent?
问题 I use IWebDriver driver = new ChromeDriver(options) in C# When I take .GetScreenshot(); , often see scrollbar, is there a way to remove it? 2nd question, how to mock/change http_agent in ChromeDriver? 回答1: Scrollbar issue: Try using Chrome switches when starting webdriver. See http://peter.sh/experiments/chromium-command-line-switches/ or chrome://flags/ in Chrome. You can also make Chromedriver open the url in a popup without scrollbars. You can do this using some Javascript. Or you could