Youtube Automation

Asked by Hanisha

Is there any way that using wheel method in Sikuli can you tube video can be played?instead of using pause .png and play.png

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
RaiMan (raimund-hocke) said :
#1

Already tried to use the SPACE-key like that:

type(Key.SPACE)

Revision history for this message
Hanisha (hanisha) said :
#2

Thank You.

Revision history for this message
Hanisha (hanisha) said :
#3

 Thanks for that, option worked .But I'm trying to do in other way as possible.Suggest me if I 'm wrong

 *Move the mouse pointer to given location and perform click with wheel method
Screen s=new Screen();
Location l=new Location(200,200);
s.wheel(l,Button.LEFT,1);

It should perform the click operation on the given location i.e., middle region of the you tube screen and video should be paused w/o using any of .png

Revision history for this message
Best RaiMan (raimund-hocke) said :
#4

l.click() should also do what you want.

Revision history for this message
TestMechanic (ndinev) said :
#5

You actually need only one row to do this

click(Location(200,200))

Revision history for this message
Hanisha (hanisha) said :
#6

Thanks RaiMan, that solved my question.