Test Output Index

testClickLink

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa1theLink
ClickthePage
TextThis is page two
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
  </head>
  <body id="bodyTag">
    <a id="a1" href="http://second">
      page two
    </a>
    <a id="a2" href="http://notfound">
      bad link
    </a>
    <a id="a3" href="http://second" onclick="return confirm('Do you really want to go to page two?');">
      page two with confirm
    </a>
  </body>
</html>
Element Focusa1
atheLink<a id="a1" href="http://second">
  page two
</a>
Click
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
  </head>
  <body id="bodyTag">
     This is page two
  </body>
</html>
TextThis is page two

testClickLinkFail404

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa2theLink
ClickthePage
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
  </head>
  <body id="bodyTag">
    <a id="a1" href="http://second">
      page two
    </a>
    <a id="a2" href="http://notfound">
      bad link
    </a>
    <a id="a3" href="http://second" onclick="return confirm('Do you really want to go to page two?');">
      page two with confirm
    </a>
  </body>
</html>
Element Focusa2
atheLink<a id="a2" href="http://notfound">
  bad link
</a>
Click
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for http://notfound at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:537) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:376) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java:122) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java:143) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:155) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:116) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:95) at com.jbergin.HtmlFixture.cmd_submit(HtmlFixture.java:1832) at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.jbergin.HtmlFixture.doRow(HtmlFixture.java:298) at fit.Fixture.doRows(Fixture.java:165) at com.jbergin.HtmlFixture.doTable(HtmlFixture.java:259) at com.jbergin.HtmlFixtureTestCase.prepareTest(HtmlFixtureTestCase.java:334) at com.jbergin.ClickAndClickConfirmTest.testClickLinkFail404(ClickAndClickConfirmTest.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
thePage

testClickNoConfirm

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa3theLink
ClickthePage
FailTextThis is page two
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
  </head>
  <body id="bodyTag">
    <a id="a1" href="http://second">
      page two
    </a>
    <a id="a2" href="http://notfound">
      bad link
    </a>
    <a id="a3" href="http://second" onclick="return confirm('Do you really want to go to page two?');">
      page two with confirm
    </a>
  </body>
</html>
Element Focusa3
atheLink<a id="a3" href="http://second" onclick="return confirm('Do you really want to go to page two?');">
  page two with confirm
</a>
Click
WARNING: Clicked Cancel on message "Do you really want to go to page two?"
Use Click Confirm command to click OK

loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
  </head>
  <body id="bodyTag">
    <a id="a1" href="http://second">
      page two
    </a>
    <a id="a2" href="http://notfound">
      bad link
    </a>
    <a id="a3" href="http://second" onclick="return confirm('Do you really want to go to page two?');">
      page two with confirm
    </a>
  </body>
</html>
FailTextThis is page two
actual value:page two bad link page two with confirm

testClickConfirm

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa3theLink
Click ConfirmthePage
TextThis is page two
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
  </head>
  <body id="bodyTag">
    <a id="a1" href="http://second">
      page two
    </a>
    <a id="a2" href="http://notfound">
      bad link
    </a>
    <a id="a3" href="http://second" onclick="return confirm('Do you really want to go to page two?');">
      page two with confirm
    </a>
  </body>
</html>
Element Focusa3
atheLink<a id="a3" href="http://second" onclick="return confirm('Do you really want to go to page two?');">
  page two with confirm
</a>
Click Confirm
loaded time: 0 milliseconds
Clicked OK on message "Do you really want to go to page two?"
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
  </head>
  <body id="bodyTag">
     This is page two
  </body>
</html>
TextThis is page two