Code:
action.press(audiobtn).waitAction(60000).release().perform();
//action.release().perform();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Logs:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 61.13 seconds
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
Script stops executing after “action.press”
Please let me know if I there is something missing in code.
I updated my code to
action.press(audiobtn).waitAction(60000).perform();
action.release().perform();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
and I see another error:
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 11 milliseconds
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
instead of pressing on a element and waiting for 6 seconds, U could use long press command using touchactions…
thanks,
Sudhanva
Well, if I just change the command to “longPress” it does not work as expected hence chosen to use “press”.
@jonahss @sujata_kalluri @willosser Any thoughts?