public function getCellValue(int $row, int $column): string
    {
        $cell = $this->context->findElement(sprintf($this->fields['tableCell'], $row, $column));

        if ($cell !== null) {
            if (strpos($cell->getHtml(), 'type="checkbox"') !== false) {
                return strpos($cell->getHtml(), 'checked') ? 'true' : 'false';
            }

            return $cell->getText();
        }

        throw new \Exception('Cell coordinates not valid - row %d, column %d', $row, $column);
    }
public function getCellValue(int $row, int $column): string
    {
        $cell = $this->context->findElement(sprintf($this->fields['tableCell'], $row, $column));

        if ($cell !== null) {
            if (strpos($cell->getHtml(), 'type="checkbox"') !== false) {
                return strpos($cell->getHtml(), 'checked') ? 'true' : 'false';
            }

            return $cell->getText();
        }

        throw new \Exception('Cell coordinates not valid - row %d, column %d', $row, $column);
    }
public function getCellValue ( int $ row , int $ column ) : string { $ cell = $ this -> context -> findElement ( sprintf ( $ this -> fields [ 'tableCell' ] , $ row , $ column ) ) ; if ( $ cell !== null ) { if ( strpos ( $ cell -> getHtml ( ) , 'type="checkbox"' ) !== false ) { return strpos ( $ cell -> getHtml ( ) , 'checked' ) ? 'true' : 'false' ; } return $ cell -> getText ( ) ; } throw new \ Exception ( 'Cell coordinates not valid - row %d, column %d' , $ row , $ column ) ; }
Get value of cell with given coordinates.

@param int $row
@param int $column

@return string

@throws \Exception when coordinates are invalid
Get value of cell with given coordinates .