Skip to content

Commit 0332e05

Browse files
author
Anshul Sonpure
committed
Few more test cases
1 parent 5c874ed commit 0332e05

File tree

4,603 files changed

+219684
-8746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,603 files changed

+219684
-8746
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Feature: In this feature file will be working with alerts
2+
3+
Background:
4+
* configure driver = { type: 'chrome'}
5+
6+
Scenario: Testing the Alerts
7+
8+
Given driver 'https://the-internet.herokuapp.com/javascript_alerts'
9+
* driver.maximize()
10+
* delay(1500)
11+
And click("//button[.='Click for JS Alert']")
12+
* delay(1500)
13+
* dialog(true)
14+
* delay(1500)
15+
And click("//button[.='Click for JS Confirm']")
16+
* delay(1500)
17+
* dialog(false)
18+
And click("//button[.='Click for JS Prompt']")
19+
* delay(3500)
20+
* dialog(true,'I accept')
21+
* delay(3500)
22+
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Feature: In this feature file will be working with drop down
2+
3+
Background:
4+
* configure driver = { type: 'chrome', showDriverLog: true}
5+
6+
Scenario: Testing the Drop Down
7+
8+
9+
Given driver 'https://omayo.blogspot.com/'
10+
* driver.maximize()
11+
* delay(1000)
12+
# select by displayed text
13+
And select("//*[@name='SiteMap']", '{}doc 1')
14+
* delay(2000)
15+
# select by partial displayed text
16+
And select("//*[@name='SiteMap']", '{^}doc 2')
17+
* delay(2000)
18+
# select by `value`
19+
And select("//*[@name='SiteMap']", 'jkl')
20+
* delay(2000)
21+
# select by index
22+
* delay(5000)
23+
And select("//*[@name='SiteMap']", 4)
24+
* delay(5000)

src/test/java/testScripts/LaunchApp.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: Lauching App in chrome browser
22

33
Background:
4-
* configure driver = { type: 'chrome', showDriverLog: true,httpConfig: { readTimeout: 120000 } }
4+
* configure driver = { type: 'chrome', showDriverLog: true}
55

66
Scenario: User must able to login in SauceDemo
77

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Feature: In this feature file will be working with new browser window
2+
3+
Background:
4+
* configure driver = { type: 'chrome', showDriverLog: true}
5+
6+
Scenario: Testing new browser window
7+
8+
9+
Given driver 'https://the-internet.herokuapp.com/windows'
10+
* driver.maximize()
11+
* delay(1000)
12+
When click("//a[.='Click Here']")
13+
* delay(1000)
14+
* switchPage('New Window')
15+
* delay(2000)
16+
* switchPage('The Internet')
17+
* delay(2000)
18+
* switchPage(1)
19+
* delay(2000)
20+
* switchPage(0)
21+
* delay(2000)
22+
23+
24+
25+
26+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Feature: In this Feature we will be interacting with frames
2+
3+
Scenario: Interacting with Iframes
4+
5+
Given driver 'https://the-internet.herokuapp.com/iframe'
6+
* configure driver = {type: 'chrome'}
7+
* driver.maximize()
8+
* delay(2000)
9+
And switchFrame("//iframe[@title='Rich Text Area']")
10+
* delay(5000)
11+
And click("//p[.='Your content goes here.']")
12+
* delay(5000)
13+
And input("//p[.='Your content goes here.']",'Hello World')
14+
* delay(5000)

src/test/java/testScripts/WebElements.feature

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
Feature: Int this Feature we will be interacting with the Web Elements
1+
Feature: In this Feature we will be interacting with the Web Elements
22

33
Background:
4-
* configure driver = { type: 'chrome', showDriverLog: true,httpConfig: { readTimeout: 120000 } }
4+
* configure driver = { type: 'chrome', showDriverLog: true}
55

66
Scenario: Interacting with the Web Elements
77

88
Given driver 'https://parabank.parasoft.com/parabank/index.htm'
99
* driver.maximize()
1010
* delay(1500)
1111
And input('input[name=username]','admin543212')
12+
* delay(1500)
1213
* clear('input[name=username]')
1314
* delay(1500)
1415
And input('input[name=password]','admin543123')
16+
* delay(1500)
1517
* clear('input[name=password]')
1618
* delay(1500)
1719
And input('input[name=username]','admin543')
-40 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

target/chrome_1675267433455/Default/Extension Rules/LOG

-2
This file was deleted.

target/chrome_1675267433455/Default/Extension Scripts/LOG

-2
This file was deleted.

target/chrome_1675267433455/Default/Extension State/LOG

-2
This file was deleted.

target/chrome_1675267433455/Default/Extensions/ljglajjnnkapghbckkcmodicjhacbfhk/2.28.0.5_0/_metadata/verified_contents.json

-1
This file was deleted.

target/chrome_1675267433455/Default/Extensions/ljglajjnnkapghbckkcmodicjhacbfhk/2.28.0.5_0/manifest.json

-24
This file was deleted.
Binary file not shown.

target/chrome_1675267433455/Default/GCM Store/Encryption/LOG

-2
This file was deleted.
Binary file not shown.
Binary file not shown.

target/chrome_1675267433455/Default/Local Extension Settings/ghbmnnjooekpmoecnnnilnnbdlolhkhi/LOG

-2
This file was deleted.

target/chrome_1675267433455/Default/Local Storage/leveldb/LOG

-2
This file was deleted.
Binary file not shown.

target/chrome_1675267433455/Default/Session Storage/LOG

-2
This file was deleted.
Binary file not shown.
Binary file not shown.

target/chrome_1675267433455/Default/Site Characteristics Database/LOG

-2
This file was deleted.

target/chrome_1675267433455/Default/Storage/ext/nmmhkkegccagdldgiimedpiccmgmieda/def/Local Storage/leveldb/LOG

-2
This file was deleted.
Binary file not shown.

target/chrome_1675267433455/Default/Sync Data/LevelDB/LOG

-2
This file was deleted.
Binary file not shown.
-100 KB
Binary file not shown.
Binary file not shown.

target/chrome_1675267433455/Default/shared_proto_db/LOG

-2
This file was deleted.

target/chrome_1675267433455/Default/shared_proto_db/metadata/LOG

-2
This file was deleted.
Binary file not shown.
-264 KB
Binary file not shown.
-4.01 MB
Binary file not shown.
Binary file not shown.
-256 KB
Binary file not shown.

target/chrome_1675267433455/Local State

-1
This file was deleted.
-256 KB
Binary file not shown.
-40 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

target/chrome_1675267519613/Default/Extension Rules/LOG

-2
This file was deleted.

target/chrome_1675267519613/Default/Extension Scripts/LOG

-2
This file was deleted.

target/chrome_1675267519613/Default/Extension State/LOG

-2
This file was deleted.

0 commit comments

Comments
 (0)