selenium - Alert handling fails in latest IE version -


os: windows 10 enterprise

selenium version: 3.3.1

browser: internet explorer 11

browser version: 11.953.14393.0

i running same test script last 3 months. last week started failing in verifying alert text. 1 difference find if same alert displayed within short time span there warning checkbox. warning message don't let page create more messages.

alert alert = driver.switchto().alert(); alerttext = alert.gettext(); 

alert.gettext() should return text.

is there way disable warning message in ie11 ? if not how can handle in selenium webdriver.?

here link handle alerts in selenium.

link help

to point specific piece of code, take @ lines 41 53 in code of article.

hope helps.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -