"Fossies" - the Fresh Open Source Software Archive

Member "selenium-selenium-4.8.1/common/src/web/rc/tests/TestClickJavascriptHref.html" (17 Feb 2023, 2965 Bytes) of package /linux/www/selenium-selenium-4.8.1.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the selenium-selenium-4.8.1.tar.gz project site itself.

TestClickJavaScriptHref
open ../tests/html/test_click_javascript_page.html  

Click a regular link

click link
verifyAlert link clicked: foo  

Click link with multiple javascript calls

click linkWithMultipleJavascriptStatements
verifyAlert alert1  
verifyAlert alert2  
verifyAlert alert3  

Click a link with javascript:void() href

click linkWithJavascriptVoidHref
verifyAlert onclick
verifyTitle Click Page 1  

Click a link where onclick returns false

click linkWithOnclickReturnsFalse
verifyTitle Click Page 1  

No alert should be raised.

Click an image enclosed in a link

click enclosedImage
verifyAlert enclosedImage clicked