import { PlaywrightFluent } from '../../fluent-api' ; describe ( 'Selector API - AG Grid samples' , ( ) : void => { let p ; beforeEach ( ( ) : void => { p = new PlaywrightFluent ( ) ; } ) ; afterEach ( async ( ) : Promise < void > => { await p . close ( ) ; } ) ; test . skip ( 'should select a name in the grid' , async ( ) : Promise < void > => { const url = 'https://www.ag-grid.com/example.php' ; await p . withBrowser ( 'chromium' ) . withCursor ( ) . withOptions ( { headless : false } ) . navigateTo ( url ) ; const agGridContainer = p . selector ( 'div.ag-body-viewport' ) ; const checkbox = agGridContainer . find ( 'div[role="row"]' ) . withText ( 'Olivia Brennan' ) . nth ( 1 ) . find ( 'div[col-id="name"]' ) . find ( 'span.ag-selection-checkbox' ) ; const handle = await checkbox . getFirstHandleOrNull ( ) ; await handle ! . hover ( ) ; await handle ! . click ( ) ; expect ( handle ) . not . toBeNull ( ) ; console . log ( checkbox . toString ( ) ) ; } ) ; } ) ;