Seek bar - slider is not moving to 100 instead it moved close to 90

Katalon Studio
Version: 4.8.0
Build: 2
platformName : Android
platformVersion: 6.0.1
deviceName: Moto G Play

I was trying to automate a video player and I was unable to move the slider to the end of the seekbar instead the slider had moved close to ~90% of the seekbar.

I have attached the code below.
'Play the movie'
Mobile.tap(findTestObject('android.widget.ImageView1'), 0)

'Let the movie play'
Mobile.delay(10, FailureHandling.STOP_ON_FAILURE)

'Tap on the videoplayer'
Mobile.tap(findTestObject('android.widget.FrameLayout4'), 0)

'Pause the playback'
Mobile.tapAtPosition(360, 360, FailureHandling.STOP_ON_FAILURE)

'Wait some time'
Mobile.delay(10, FailureHandling.STOP_ON_FAILURE)

'Check if seekbar is visible'
Mobile.checkElement(findTestObject('android.widget.SeekBar0'), 10)

'Seek to the last'
Mobile.setSliderValue(findTestObject('android.widget.SeekBar0'), 100, 10)

'Wait some time'
Mobile.delay(5, FailureHandling.STOP_ON_FAILURE)
I tired to to move the seek bar using the below method. 

Can somebody please help me. I would like to move the slider to the end of the playback.
Thank you.
-Yashwant Das

Sign In or Register to comment.