@@ -835,9 +835,8 @@ class Driver extends webdriver.WebDriver {
835
835
* containing the friendly device names of available cast sink targets.
836
836
*/
837
837
getCastSinks ( ) {
838
- return this . schedule (
839
- new command . Command ( Command . GET_CAST_SINKS ) ,
840
- 'Driver.getCastSinks()'
838
+ return this . execute (
839
+ new command . Command ( Command . GET_CAST_SINKS )
841
840
)
842
841
}
843
842
@@ -849,12 +848,11 @@ class Driver extends webdriver.WebDriver {
849
848
* when the target device has been selected to respond further webdriver commands.
850
849
*/
851
850
setCastSinkToUse ( deviceName ) {
852
- return this . schedule (
851
+ return this . execute (
853
852
new command . Command ( Command . SET_CAST_SINK_TO_USE ) . setParameter (
854
853
'sinkName' ,
855
854
deviceName
856
- ) ,
857
- 'Driver.setCastSinkToUse(' + deviceName + ')'
855
+ )
858
856
)
859
857
}
860
858
@@ -866,12 +864,11 @@ class Driver extends webdriver.WebDriver {
866
864
* when the mirror command has been issued to the device.
867
865
*/
868
866
startDesktopMirroring ( deviceName ) {
869
- return this . schedule (
867
+ return this . execute (
870
868
new command . Command ( Command . START_CAST_DESKTOP_MIRRORING ) . setParameter (
871
869
'sinkName' ,
872
870
deviceName
873
- ) ,
874
- 'Driver.startDesktopMirroring(' + deviceName + ')'
871
+ )
875
872
)
876
873
}
877
874
@@ -883,12 +880,11 @@ class Driver extends webdriver.WebDriver {
883
880
* when the mirror command has been issued to the device.
884
881
*/
885
882
startCastTabMirroring ( deviceName ) {
886
- return this . schedule (
883
+ return this . execute (
887
884
new command . Command ( Command . START_CAST_TAB_MIRRORING ) . setParameter (
888
885
'sinkName' ,
889
886
deviceName
890
- ) ,
891
- 'Driver.startCastTabMirroring(' + deviceName + ')'
887
+ )
892
888
)
893
889
}
894
890
@@ -898,9 +894,8 @@ class Driver extends webdriver.WebDriver {
898
894
* when the mirror command has been issued to the device.
899
895
*/
900
896
getCastIssueMessage ( ) {
901
- return this . schedule (
902
- new command . Command ( Command . GET_CAST_ISSUE_MESSAGE ) ,
903
- 'Driver.getCastIssueMessage()'
897
+ return this . execute (
898
+ new command . Command ( Command . GET_CAST_ISSUE_MESSAGE )
904
899
)
905
900
}
906
901
@@ -912,12 +907,11 @@ class Driver extends webdriver.WebDriver {
912
907
* when the stop command has been issued to the device.
913
908
*/
914
909
stopCasting ( deviceName ) {
915
- return this . schedule (
910
+ return this . execute (
916
911
new command . Command ( Command . STOP_CASTING ) . setParameter (
917
912
'sinkName' ,
918
913
deviceName
919
- ) ,
920
- 'Driver.stopCasting(' + deviceName + ')'
914
+ )
921
915
)
922
916
}
923
917
}
0 commit comments