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

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

Source:ActionService.java Github

copy

Full Screen

...817 Identifier identifier = identifierService.convertStringToIdentifier(element);818 if (tCExecution.getApplicationObj().getType().equalsIgnoreCase(Application.TYPE_GUI)) {819 if (tCExecution.getRobotObj().getPlatform().equalsIgnoreCase(Platform.ANDROID.toString())) {820 identifierService.checkWebElementIdentifier(identifier.getIdentifier());821 return webdriverService.doSeleniumActionMouseOver(tCExecution.getSession(), identifier, false, false);822 } else {823 if (identifier.getIdentifier().equals(SikuliService.SIKULI_IDENTIFIER_PICTURE)) {824 return sikuliService.doSikuliActionMouseOver(tCExecution.getSession(), identifier.getLocator(), "");825 } else if (identifier.getIdentifier().equals(SikuliService.SIKULI_IDENTIFIER_TEXT)) {826 return sikuliService.doSikuliActionMouseOver(tCExecution.getSession(), "", identifier.getLocator());827 } else {828 identifierService.checkWebElementIdentifier(identifier.getIdentifier());829 return webdriverService.doSeleniumActionMouseOver(tCExecution.getSession(), identifier, true, true);830 }831 }832 } else if (tCExecution.getApplicationObj().getType().equalsIgnoreCase(Application.TYPE_FAT)) {833 identifierService.checkSikuliIdentifier(identifier.getIdentifier());834 if (identifier.getIdentifier().equals(SikuliService.SIKULI_IDENTIFIER_PICTURE)) {835 return sikuliService.doSikuliActionMouseOver(tCExecution.getSession(), identifier.getLocator(), "");836 } else {837 return sikuliService.doSikuliActionMouseOver(tCExecution.getSession(), "", identifier.getLocator());838 }839 }840 message = new MessageEvent(MessageEventEnum.ACTION_NOTEXECUTED_NOTSUPPORTED_FOR_APPLICATION);841 message.setDescription(message.getDescription().replace("%ACTION%", "mouseOver"));842 message.setDescription(message.getDescription().replace("%APPLICATIONTYPE%", tCExecution.getApplicationObj().getType()));843 return message;844 } catch (CerberusEventException ex) {845 LOG.fatal("Error doing Action MouseOver :" + ex);846 return ex.getMessageError();847 }848 }849 private MessageEvent doActionMouseOverAndWait(TestCaseExecution tCExecution, String object, String property) {850 MessageEvent message;851 try {852 /**853 * Check object is not null854 */855 if (object == null) {856 return new MessageEvent(MessageEventEnum.ACTION_FAILED_MOUSEOVERANDWAIT_GENERIC);857 }858 /**859 * Get Identifier (identifier, locator)860 */861 Identifier identifier = identifierService.convertStringToIdentifier(object);862 identifierService.checkWebElementIdentifier(identifier.getIdentifier());863 if (tCExecution.getApplicationObj().getType().equalsIgnoreCase(Application.TYPE_GUI)) {864 if (identifier.getIdentifier().equals(SikuliService.SIKULI_IDENTIFIER_PICTURE)) {865 message = sikuliService.doSikuliActionMouseOver(tCExecution.getSession(), identifier.getLocator(), "");866 } else if (identifier.getIdentifier().equals(SikuliService.SIKULI_IDENTIFIER_TEXT)) {867 message = sikuliService.doSikuliActionMouseOver(tCExecution.getSession(), "", identifier.getLocator());868 } else {869 message = webdriverService.doSeleniumActionMouseOver(tCExecution.getSession(), identifier, true, true);870 }871 if (message.getCodeString().equals("OK")) {872 message = this.doActionWait(tCExecution, property, null);873 }874 return message;875 }876 message = new MessageEvent(MessageEventEnum.ACTION_NOTEXECUTED_NOTSUPPORTED_FOR_APPLICATION);877 message.setDescription(message.getDescription().replace("%ACTION%", "mouseOverAndWait"));878 message.setDescription(message.getDescription().replace("%APPLICATIONTYPE%", tCExecution.getApplicationObj().getType()));879 return message;880 } catch (CerberusEventException ex) {881 LOG.fatal("Error doing Action MouseOverAndWait :" + ex);882 return ex.getMessageError();883 }...

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