У меня проблема с модульным тестом. Используйте Katalon и найдите все поля МЕНЬШЕЕ средство выбора даты ... в них оно падает и выдает ошибку, когда я выбираю из средства выбора даты
09-08-2018 05:58:36 PM - [FAILED] - Unable to click on object 'Object Repository/Page_Escritorio Acepta/span_Prev' (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: 'Object Repository/Page_Escritorio Acepta/span_Prev' located by 'By.xpath: //div[@id='ui-datepicker-div']/div/a/span' not found)
Другими словами, вы не можете нажать на дату (выбранный день)
This is my datepicker script from a demo web:
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys
WebUI.openBrowser('')
WebUI.navigateToUrl('https://jqueryui.com/datepicker/')
WebUI.click(findTestObject('Object Repository/pruebasRamdon/Page_Datepicker jQuery UI/span_Prev'))
WebUI.click(findTestObject('Object Repository/pruebasRamdon/Page_Datepicker jQuery UI/a_1'))
WebUI.closeBrowser()