-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIA-634: Create Protocol page object and step object
This is to access protocol settings page so that we can verify whether our system restart the selection after logout.
- Loading branch information
Showing
5 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
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
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
app/src/androidTest/java/screens/objects/ProtocolPageObjects.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.privateinternetaccess.android.screens.objects | ||
|
||
import androidx.test.uiautomator.UiSelector | ||
import com.privateinternetaccess.android.helpers.LocatorHelper | ||
|
||
class ProtocolPageObjects { | ||
|
||
val protocolSettings = LocatorHelper.findByResourceId("com.privateinternetaccess.android:id/protocolsSettings") | ||
val protocolSelection = LocatorHelper.findByResourceId("com.privateinternetaccess.android:id/protocolSetting") | ||
val openVPN = LocatorHelper.selectDropDownList("com.privateinternetaccess.android:id/list_settings_radio", 0) | ||
val save = LocatorHelper.findByResourceId("android:id/button1") | ||
} |
16 changes: 16 additions & 0 deletions
16
app/src/androidTest/java/screens/steps/ProtocolStepObjects.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.privateinternetaccess.android.screens.steps | ||
|
||
import com.privateinternetaccess.android.screens.objects.ProtocolPageObjects | ||
|
||
class ProtocolStepObjects { | ||
|
||
val protocolPageObjects = ProtocolPageObjects() | ||
|
||
fun clickProtocol() | ||
{ | ||
protocolPageObjects.openVPN.click() | ||
protocolPageObjects.save.click() | ||
} | ||
|
||
|
||
} |
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