File tree 2 files changed +38
-0
lines changed
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,25 @@ Returns URL of a host.
122
122
@throws ModuleConfigException
123
123
124
124
125
+ #### _restart
126
+
127
+ *hidden API method, expected to be used from Helper classes*
128
+
129
+ Restarts a web browser.
130
+ Can be used with `_reconfigure` to open browser with different configuration
131
+
132
+ {% highlight php %}
133
+
134
+ <? php
135
+ // inside a Helper
136
+ $this-> getModule('WebDriver')->_restart(); // just restart
137
+ $this->getModule('WebDriver')->_restart(['browser' => $browser]); // reconfigure + restart
138
+
139
+ {% endhighlight %}
140
+
141
+ * `param array` $config
142
+
143
+
125
144
#### _savePageSource
126
145
127
146
*hidden API method, expected to be used from Helper classes*
Original file line number Diff line number Diff line change @@ -300,6 +300,25 @@ Returns URL of a host.
300
300
@throws ModuleConfigException
301
301
302
302
303
+ #### _restart
304
+
305
+ *hidden API method, expected to be used from Helper classes*
306
+
307
+ Restarts a web browser.
308
+ Can be used with `_reconfigure` to open browser with different configuration
309
+
310
+ {% highlight php %}
311
+
312
+ <? php
313
+ // inside a Helper
314
+ $this-> getModule('WebDriver')->_restart(); // just restart
315
+ $this->getModule('WebDriver')->_restart(['browser' => $browser]); // reconfigure + restart
316
+
317
+ {% endhighlight %}
318
+
319
+ * `param array` $config
320
+
321
+
303
322
#### _savePageSource
304
323
305
324
*hidden API method, expected to be used from Helper classes*
You can’t perform that action at this time.
0 commit comments