mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:53:23 +02:00
18
res/test/e2e/widget-container/index.js
Normal file
18
res/test/e2e/widget-container/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
module.exports = function WidgetContainerPage() {
|
||||
|
||||
this.get = function() {
|
||||
browser.get(browser.baseUrl + 'devices')
|
||||
browser.wait(waitUrl(/devices/), 5000)
|
||||
}
|
||||
|
||||
this.userName = element(by.binding('currentUser.name'))
|
||||
this.amountOfAssignedToUserDevices = element(by.xpath('//*[@class="number color-orange"]/span'))
|
||||
|
||||
this.getUserNameFromWidget = function() {
|
||||
return this.userName.getText()
|
||||
}
|
||||
|
||||
this.getAmountOfAssignedToUserDevices = function() {
|
||||
return this.amountOfAssignedToUserDevices.getText()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user