@@ -835,9 +835,8 @@ class Driver extends webdriver.WebDriver {
835835 * containing the friendly device names of available cast sink targets.
836836 */
837837 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 )
841840 )
842841 }
843842
@@ -849,12 +848,11 @@ class Driver extends webdriver.WebDriver {
849848 * when the target device has been selected to respond further webdriver commands.
850849 */
851850 setCastSinkToUse ( deviceName ) {
852- return this . schedule (
851+ return this . execute (
853852 new command . Command ( Command . SET_CAST_SINK_TO_USE ) . setParameter (
854853 'sinkName' ,
855854 deviceName
856- ) ,
857- 'Driver.setCastSinkToUse(' + deviceName + ')'
855+ )
858856 )
859857 }
860858
@@ -866,12 +864,11 @@ class Driver extends webdriver.WebDriver {
866864 * when the mirror command has been issued to the device.
867865 */
868866 startDesktopMirroring ( deviceName ) {
869- return this . schedule (
867+ return this . execute (
870868 new command . Command ( Command . START_CAST_DESKTOP_MIRRORING ) . setParameter (
871869 'sinkName' ,
872870 deviceName
873- ) ,
874- 'Driver.startDesktopMirroring(' + deviceName + ')'
871+ )
875872 )
876873 }
877874
@@ -883,12 +880,11 @@ class Driver extends webdriver.WebDriver {
883880 * when the mirror command has been issued to the device.
884881 */
885882 startCastTabMirroring ( deviceName ) {
886- return this . schedule (
883+ return this . execute (
887884 new command . Command ( Command . START_CAST_TAB_MIRRORING ) . setParameter (
888885 'sinkName' ,
889886 deviceName
890- ) ,
891- 'Driver.startCastTabMirroring(' + deviceName + ')'
887+ )
892888 )
893889 }
894890
@@ -898,9 +894,8 @@ class Driver extends webdriver.WebDriver {
898894 * when the mirror command has been issued to the device.
899895 */
900896 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 )
904899 )
905900 }
906901
@@ -912,12 +907,11 @@ class Driver extends webdriver.WebDriver {
912907 * when the stop command has been issued to the device.
913908 */
914909 stopCasting ( deviceName ) {
915- return this . schedule (
910+ return this . execute (
916911 new command . Command ( Command . STOP_CASTING ) . setParameter (
917912 'sinkName' ,
918913 deviceName
919- ) ,
920- 'Driver.stopCasting(' + deviceName + ')'
914+ )
921915 )
922916 }
923917}
0 commit comments