File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1- # syntax=docker/dockerfile:1
2- FROM atools/jdk-maven-node:mvn3-jdk11-node16 as base
1+ FROM node:18 as base
32
43WORKDIR /code
54
Original file line number Diff line number Diff line change @@ -155,12 +155,20 @@ module.exports = class BasePage {
155155 return this . getTableMiniUsingTableElement ( table )
156156 }
157157 async getTableMiniUsingTableElement ( table ) {
158- const rows = await table . findElements ( By . css ( 'tbody tr' ) )
158+ let tbody = await table . findElement ( By . css ( 'tbody' ) )
159+ let rows = await tbody . findElements ( By . xpath ( "./child::*" ) )
160+
161+ console . log ( "getTableMiniUsingTableElement found " + rows . length + " rows" )
159162 let table_model = [ ]
160163 for ( let row of rows ) {
161164 let columnName = await row . findElement ( By . css ( 'th' ) ) . getText ( )
165+ console . log ( "getTableMiniUsingTableElement parsing column Name " + columnName )
166+
162167 let columnValue = await row . findElement ( By . css ( 'td' ) )
163- let columnType = await columnValue . getTagName ( )
168+ let columnContent = await columnValue . findElement ( By . xpath ( "./child::*" ) )
169+
170+ let columnType = await columnContent . getTagName ( )
171+
164172 switch ( columnType ) {
165173 case "table" :
166174 table_model . push ( {
@@ -171,7 +179,7 @@ module.exports = class BasePage {
171179 default :
172180 table_model . push ( {
173181 "name" : columnName ,
174- "value" : await columnValue . getText ( )
182+ "value" : await columnContent . getText ( )
175183 } )
176184 }
177185 }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const QUEUE_NAME = By.css('div#main h1 b')
77
88const DELETE_SECTION = By . css ( 'div#main div#delete' )
99const DELETE_BUTTON = By . css ( 'div#main div#delete input[type=submit]' )
10- const FEATURES = By . css ( 'table#details-queue-table td#details-queue-features' )
10+ const FEATURES = By . css ( 'table#details-queue-table td#details-queue-features table.mini ' )
1111
1212module . exports = class QueuePage extends BasePage {
1313 async isLoaded ( ) {
You can’t perform that action at this time.
0 commit comments