Documentation ¶
Index ¶
- type NewPage
- func (n *NewPage) AllDevicesPage()
- func (n *NewPage) BulkEdit() *NewPage
- func (n *NewPage) ChangeDeviceName(name string) *NewPage
- func (n *NewPage) Connect(url string) *NewPage
- func (n *NewPage) ConnectWLeakless(url string) *NewPage
- func (n *NewPage) DevicePageCancel() *NewPage
- func (n *NewPage) DeviceProps() *NewPage
- func (n *NewPage) Edit() *NewPage
- func (n *NewPage) Fill_Defaults() *NewPage
- func (n *NewPage) GetDeviceName() (string, bool)
- func (n *NewPage) InputOsName(osName string) *NewPage
- func (n *NewPage) Login(username string, password string)
- func (n *NewPage) MultiDevicePageCancel() *NewPage
- func (n *NewPage) SaveChanges() *NewPage
- func (n *NewPage) Search(searchString string)
- func (n *NewPage) SelectAll() *NewPage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewPage ¶
type NewPage struct { Page *rod.Page ShortWait time.Duration MedWait time.Duration LongWait time.Duration }
func (*NewPage) AllDevicesPage ¶
func (n *NewPage) AllDevicesPage()
func (*NewPage) ChangeDeviceName ¶
First checks to make sure the "Use Discovered Name" is unchecked so the Given name box isn't grayed out. After that it selects all the existing characters and replaces with the provided string.
func (*NewPage) Connect ¶
Start a new browser session. Disables Leakless in go-rod package by default. If you would like to use leakless use ConnectWLeakless() instead
func (*NewPage) ConnectWLeakless ¶ added in v0.0.9
func (*NewPage) DevicePageCancel ¶
hits the cancel button the device edit page. General used after saving.
func (*NewPage) DeviceProps ¶
Edit() > DeviceProps(). Goes into Settings and clicks Properties.
func (*NewPage) Fill_Defaults ¶
func (*NewPage) GetDeviceName ¶
Edit() > GetDeviceName(). Gets device name from Device Properties page. Panics on multiselect page as that's not currently supported. Great for verifying you're in the right place and allows you compare new and old device names before and after making changes.
func (*NewPage) InputOsName ¶ added in v0.0.4
func (*NewPage) MultiDevicePageCancel ¶
hits the cancel button on the multidevice edit page. Usually the result of an error since we don't handle that page.
func (*NewPage) SaveChanges ¶
Hits save button on device settings page. Saving takes 3-10 seconds so there's a mandatory 4 second delay after hitting the button. It might still be worth it to add a longer manual delay to avoid issues.