Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TestSW1_bendasta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stanislav Benda
TestSW1_bendasta
Commits
5d6c160d
Commit
5d6c160d
authored
2 years ago
by
Stanislav Benda
Browse files
Options
Downloads
Patches
Plain Diff
updated
parent
c5bdf199
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
selenium-1/.idea/compiler.xml
+1
-0
1 addition, 0 deletions
selenium-1/.idea/compiler.xml
selenium-1/.idea/vcs.xml
+6
-0
6 additions, 0 deletions
selenium-1/.idea/vcs.xml
selenium-1/src/test/java/BasicSelenium.java
+8
-1
8 additions, 1 deletion
selenium-1/src/test/java/BasicSelenium.java
with
15 additions
and
1 deletion
selenium-1/.idea/compiler.xml
+
1
−
0
View file @
5d6c160d
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
selenium-1/.idea/vcs.xml
0 → 100644
+
6
−
0
View file @
5d6c160d
<?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
This diff is collapsed.
Click to expand it.
selenium-1/src/test/java/BasicSelenium.java
+
8
−
1
View file @
5d6c160d
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"
));
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment