How to use doSeleniumActionDoubleClick method of org.cerberus.service.webdriver.impl.WebDriverService class

Best Cerberus-source code snippet using org.cerberus.service.webdriver.impl.WebDriverService.doSeleniumActionDoubleClick

Source:ActionService.java Github

copy

Full Screen

...712 Identifier identifier = identifierService.convertStringToIdentifier(element);713 if (tCExecution.getApplicationObj().getType().equalsIgnoreCase(Application.TYPE_GUI)) {714 if (tCExecution.getRobotObj().getPlatform().equalsIgnoreCase(Platform.ANDROID.toString())) {715 identifierService.checkWebElementIdentifier(identifier.getIdentifier());716 return webdriverService.doSeleniumActionDoubleClick(tCExecution.getSession(), identifier, false, false);717 } else {718 if (identifier.getIdentifier().equals(SikuliService.SIKULI_IDENTIFIER_PICTURE)) {719 return sikuliService.doSikuliActionDoubleClick(tCExecution.getSession(), identifier.getLocator(), "");720 } else if (identifier.getIdentifier().equals(SikuliService.SIKULI_IDENTIFIER_TEXT)) {721 return sikuliService.doSikuliActionDoubleClick(tCExecution.getSession(), "", identifier.getLocator());722 } else {723 identifierService.checkWebElementIdentifier(identifier.getIdentifier());724 return webdriverService.doSeleniumActionDoubleClick(tCExecution.getSession(), identifier, true, true);725 }726 }727 } else if (tCExecution.getApplicationObj().getType().equalsIgnoreCase(Application.TYPE_APK)728 || tCExecution.getApplicationObj().getType().equalsIgnoreCase(Application.TYPE_IPA)) {729 identifierService.checkWebElementIdentifier(identifier.getIdentifier());730 return webdriverService.doSeleniumActionDoubleClick(tCExecution.getSession(), identifier, true, false);731 } else if (tCExecution.getApplicationObj().getType().equalsIgnoreCase(Application.TYPE_FAT)) {732 identifierService.checkSikuliIdentifier(identifier.getIdentifier());733 if (identifier.getIdentifier().equals(SikuliService.SIKULI_IDENTIFIER_PICTURE)) {734 return sikuliService.doSikuliActionDoubleClick(tCExecution.getSession(), identifier.getLocator(), "");735 } else {736 return sikuliService.doSikuliActionDoubleClick(tCExecution.getSession(), "", identifier.getLocator());737 }738 }739 message = new MessageEvent(MessageEventEnum.ACTION_NOTEXECUTED_NOTSUPPORTED_FOR_APPLICATION);740 message.setDescription(message.getDescription().replace("%ACTION%", "doubleClick"));741 message.setDescription(message.getDescription().replace("%APPLICATIONTYPE%", tCExecution.getApplicationObj().getType()));742 return message;743 } catch (CerberusEventException ex) {744 LOG.fatal("Error doing Action DoubleClick :" + ex);...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful