change: add EnablePlugin, default to disable plugin

This commit is contained in:
lilong.129
2024-11-14 15:50:37 +08:00
parent fde7493af5
commit d4efb3adf8
4 changed files with 33 additions and 26 deletions
+10 -3
View File
@@ -180,9 +180,16 @@ func (c *TConfig) SetAndroid(options ...uixt.AndroidDeviceOption) *TConfig {
return c
}
func (s *TConfig) DisableAutoPopupHandler() *TConfig {
s.IgnorePopup = true
return s
// EnablePlugin enables plugin for current testcase.
// default to disable plugin
func (c *TConfig) EnablePlugin() *TConfig {
c.PluginSetting = &PluginConfig{}
return c
}
func (c *TConfig) DisableAutoPopupHandler() *TConfig {
c.IgnorePopup = true
return c
}
type ThinkTimeConfig struct {