Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinFroms and WPF platforms.
Mozilla Public License 2.0
402
stars
140
forks
source link
Table values are saved incorrectly in List array. Values are saved as "[WiniumDriver: on ANY (AwesomeSession)] -> xpath: //*[contains(@LocalizedControlType,'table')]" #324
Hi, I am automating desktop application using Winium. Here is the scenario.
Here is my simple code and results shown in console.
WebElement mytable1 = winiumDriver.findElementByXPath("//*[contains(@LocalizedControlType,'table')]"); System.out.println("mytable 1 size : " + mytable1.getSize());
List < WebElement > clients_table1 = mytable1.findElements(By.xpath("//*[contains(@LocalizedControlType,'item')]")); System.out.println("Clients table 1 size : " + clients_table1.size()); System.out.println("Item details1 - 0th element: " + clients_table1.get(0));
List < WebElement > clients_table2 = mytable1.findElements(By.xpath("//[contains(@LocalizedControlType,'table')]//[@Name]")); System.out.println("Clients table 2 size : " + clients_table2.size()); System.out.println("Item details2 - 0th element: " + clients_table2.get(0));
Results in console:
mytable 1 size : (766, 192) Clients table 1 size : 259 Item details1 - 0th element: [[[[WiniumDriver: on ANY (AwesomeSession)] -> xpath: //[contains(@LocalizedControlType,'table')]]] -> xpath: //[contains(@LocalizedControlType,'item')]]
Clients table 2 size : 33 Item details2 - 0th element: [[[[WiniumDriver: on ANY (AwesomeSession)] -> xpath: //[contains(@LocalizedControlType,'table')]]] -> xpath: //[contains(@LocalizedControlType,'table')]//*[@Name]]
Please assist in understanding below clarifications
Thanks, Shanki