public static void assertElementContainsTextPosition(MyElement myElement, String elementText, int expectedPosition, WebDriver driver) {
    	log.info("enter to function assertElementContainsTextPosition with element '" + myElement.getName() + "'");
		options.setDriver(driver);
		options.setMyElement(myElement);
		options.setText(elementText);
		int position = WebElementsServices.getElementContainsTextPosition(options);
		if (position == -1) {
			log.error("Element has not right type " );
			MultiServices.errorShutdown(options);
		} else {
			if (position == 0) {
				log.error("Noone element contains expected text '" + elementText + "'" );
				MultiServices.errorShutdown(options);
			} else {
				if (position == -2) {
					log.error("More than one element contain expected text '" + elementText + "'" );
					MultiServices.errorShutdown(options);
				} else {
					if (position != expectedPosition) {
						log.error("Item containing text " + elementText + " position is " + position + " but expected " + expectedPosition);
						MultiServices.errorShutdown(options);
					} else {
						log.info("Item containing text " + elementText + " position is " + position + " is equal to expected " + expectedPosition);
					}
				}
			}
		}
    }