Youtube Automation

Asked by Hanisha on 2018-06-27

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2018-06-29
Last query:
2018-06-29
Last reply:
2018-06-28

This question was reopened

RaiMan (raimund-hocke) said : #1

Already tried to use the SPACE-key like that:

type(Key.SPACE)

Hanisha (hanisha) said : #2

Thank You.

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

Best RaiMan (raimund-hocke) said : #4

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

TestMechanic (ndinev) said : #5

You actually need only one row to do this

click(Location(200,200))

Hanisha (hanisha) said : #6

Thanks RaiMan, that solved my question.