728x90
Install-Package Selenium.Support
// By Text
(new SelectElement(driver.FindElement(By.XPath(""))).SelectByText("");
// By Value
(new SelectElement(driver.FindElement(By.XPath(""))).SelectByValue("");
์ถ์ฒ:
How to select an option from drop down using Selenium WebDriver C#?
I was trying for my web test selecting an option. An example can be found here: http://www.tizag.com/phpT/examples/formex.php Everything works great except the selecting an option part. How to sel...
stackoverflow.com
728x90
'๐จ๐ผโ๐ป๊ฐ๋ฐ > ์ ๋ ๋์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ ๋ ๋์ - C#, ์ฌ์ฉ์์ ๊ธฐ์กด ํฌ๋กฌ ํ๊ฒฝ ์กฐ์ํ๊ธฐ (0) | 2022.11.16 |
---|---|
์ ๋ ๋์ - ๋ชจ๋ฐ์ผ ์๋ฎฌ๋ ์ด์ ์ต์ ์ค์ (ChromiumMobileEmulationDeviceSettings) (0) | 2022.11.15 |
์ ๋ ๋์ - C#, ์๋ฐ์คํฌ๋ฆฝํธ ์คํ ๊ฒฐ๊ณผ ๊ฐ์ ธ์ค๊ธฐ (0) | 2022.10.26 |
์ ๋ ๋์ - ์บก์ฑ ์ฐํ ๋ชจ๋(Captcha-Impulse) (0) | 2022.10.25 |
์ ๋ ๋์ - ์ํฐ๋ด ํ์ธ ์ฌ์ดํธ (0) | 2022.10.12 |