728x90
๋ฐ์ํ
ํ์ธ)
WebDriverWait(driver, 10).until(EC.alert_is_present())
alert = driver.switch_to.alert
alert.accept()
์ทจ์)
WebDriverWait(driver, 10).until(EC.alert_is_present())
alert = driver.switch_to.alert
alert.dismiss()
์ฐธ๊ณ :
https://dejavuqa.tistory.com/272
Selenium์ผ๋ก Alert ์ฐฝ ์ฒ๋ฆฌํ๊ธฐ
Alert ์ฐฝ ์ฒ๋ฆฌ์ ๋ํด ํ์ธํด ๋ณด๊ฒ ์ต๋๋ค. ์ฐ์ ์๋์ ๊ฐ์ด html ํ์ผ์ ๋ง๋ค์์ต๋๋ค. <!DOCTYPE html> Click the button to display a simple alert box. Try it Click the button to demonstrate line-breaks..
dejavuqa.tistory.com
728x90
๋ฐ์ํ
'๐จ๐ผโ๐ป๊ฐ๋ฐ > ์ ๋ ๋์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ ๋ ๋์ - ํ์ผ ์ฌ๋ฌ๊ฐ ํ ๋ฒ์ ์ฌ๋ฆฌ๊ธฐ (0) | 2022.01.17 |
---|---|
์ ๋ ๋์ - ๋ธ๋ผ์ฐ์ ํ์ฌ url ๊ฐ์ ธ์ค๊ธฐ (0) | 2022.01.15 |
์ ๋ ๋์ - ๋ธ๋ผ์ฐ์ ๋ก๋ฉ ํ์์์ ์ฃผ๊ธฐ, implicitly_wait, explicitly wait (0) | 2022.01.15 |
์ ๋ ๋์ - iframe ์กฐ์ (0) | 2022.01.15 |
์ ๋ ๋์ - ๋ธ๋ผ์ฐ์ ์ ์ํฐ ๋ณด๋ด๊ธฐ (0) | 2022.01.15 |