Hola,
Tengo un test para la selección de filas/columnas en un Grid, que funcionaba perfectamtente. Recientemente han cambiado el componente que se está testeando migrándolo de Vaadin 7 a Vaadin 8 y el test ha dejado de funcionar.
La excepción que está dando es la siguiente:
org.openqa.selenium.NoSuchElementException: **Vaadin could not find elements with the selector #cell[0]
**
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'NBVAL794', ip: '172.23.10.10', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_144'
Driver info: driver.version: unknown
at com.vaadin.testbench.TestBenchDriverProxy.findElementByVaadinSelector(TestBenchDriverProxy.java:110)
at com.vaadin.testbench.By$ByVaadin.findElement(By.java:69)
at com.vaadin.testbench.TestBenchElement.findElement(TestBenchElement.java:289)
at com.vaadin.testbench.elements.GridElement.getSubPart(GridElement.java:428)
at com.vaadin.testbench.elements.GridElement.getRow(GridElement.java:197)
at com.xetics.utils.Utilities.getRow(Utilities.java:88)
at com.xetics.pageobjects.tabs.ProductionOrderStatusTab.getFirstJobOrderName(ProductionOrderStatusTab.java:21)
at com.xetics.tests.CreateItemsTest.checkIfJobIsCreatedForOrder(CreateItemsTest.java:463)
at com.xetics.tests.CreateItemsTest.createJobsForOrder(CreateItemsTest.java:345)
at com.xetics.tests.CreateItemsTest.testCreateJobsForBatchOrder(CreateItemsTest.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
at org.testng.TestNG.runSuites(TestNG.java:1144)
at org.testng.TestNG.run(TestNG.java:1115)
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123)
Caused by: java.lang.Exception: Client could not identify elements with the provided selector
... 34 more
El método que tenemos para obtener desde testbench los datos del grid es getCell de GridElement.GridCellElement.
¿Sabéis qué puede estar pasando?
Gracias por adelantado,
Saludos,
Inma