728x90
๋ฐ์ํ
// Number
var newScrollHeight = (long) js.ExecuteScript("window.scrollTo(0, document.body.scrollHeight); return document.body.scrollHeight;");
// String
string title = (string)js.ExecuteScript("return document.title");
์ถ์ฒ:
https://stackoverflow.com/questions/18572651/selenium-scroll-down-a-growing-page
Selenium - Scroll down a growing page
I'm using Selenium with c#. Selenium usually can automatically scroll down to the bottom of a web page to find elements but I having issues with a certain page which can increase in size. Can an...
stackoverflow.com
https://stackoverflow.com/questions/6229769/execute-javascript-using-selenium-webdriver-in-c-sharp
Execute JavaScript using Selenium WebDriver in C#
How is this achieved? Here it says the java version is: WebDriver driver; // Assigned elsewhere JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("return document.title"); But...
stackoverflow.com
728x90
๋ฐ์ํ
'๐จ๐ผโ๐ป๊ฐ๋ฐ > ์ ๋ ๋์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ ๋ ๋์ - ๋ชจ๋ฐ์ผ ์๋ฎฌ๋ ์ด์ ์ต์ ์ค์ (ChromiumMobileEmulationDeviceSettings) (0) | 2022.11.15 |
---|---|
์ ๋ ๋์ - C#, Select Option ์ ํ (0) | 2022.10.26 |
์ ๋ ๋์ - ์บก์ฑ ์ฐํ ๋ชจ๋(Captcha-Impulse) (0) | 2022.10.25 |
์ ๋ ๋์ - ์ํฐ๋ด ํ์ธ ์ฌ์ดํธ (0) | 2022.10.12 |
์ ๋ ๋์ - ํน์ URL ์ฐจ๋จํ๊ธฐ (0) | 2022.10.11 |