Created
March 3, 2020 15:52
-
-
Save NickBaynham/750401228fd9e976f72b13951603e443 to your computer and use it in GitHub Desktop.
Testing getting the HTML document using Selenium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package selfHealingExamples.tests.registration; | |
import org.openqa.selenium.By; | |
import org.testng.annotations.Test; | |
import static org.testng.AssertJUnit.assertEquals; | |
public class RegistrationGetHTML extends BaseTest { | |
@Test | |
public void TestRegistration() { | |
getDriver().get("http://localhost:7800/bootstrap1.html#"); | |
final String HTML_SOURCE_CODE = getDriver().getPageSource(); | |
System.out.println(HTML_SOURCE_CODE); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment