Skip to content
Snippets Groups Projects
Commit 5d6c160d authored by Stanislav Benda's avatar Stanislav Benda :thumbsup_tone5:
Browse files

updated

parent c5bdf199
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="selenium" />
<module name="selenium-1" />
</profile>
</annotationProcessing>
</component>
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>
\ No newline at end of file
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
......@@ -7,7 +9,12 @@ public class BasicSelenium {
@BeforeEach
public void setUp(){
FirefoxDriver.SystemProperty();
System.setProperty("webdriver.gecko.driver","/import/users/bendasta/CVUT/Predmety/TestovaniSW/testsw1bendasta/selenium-1/geckodriver-v0.31.0-linux64/geckodriver");
driver = new FirefoxDriver();
}
@Test
public void flightFormTest(){
driver.get("https://flight-order.herokuapp.com");
System.out.println(driver.findElement(By.cssSelector("body > div > h1")).getAttribute("textContent"));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment