@ -214,11 +214,18 @@ $(document).ready(function () {
$ ( 'input[placeholder="Value"]' , first _available ) . addClass ( 'ok' ) . click ( ) . focus ( ) ;
$ ( 'input[placeholder="Value"]' , first _available ) . addClass ( 'ok' ) . click ( ) . focus ( ) ;
found _something = true ;
found _something = true ;
} else {
} else {
if ( x [ 'isClickable' ] || x [ 'tagName' ] . startsWith ( 'h' ) || x [ 'tagName' ] === 'a' || x [ 'tagName' ] === 'button' || x [ 'tagtype' ] === 'submit' || x [ 'tagtype' ] === 'checkbox' || x [ 'tagtype' ] === 'radio' || x [ 'tagtype' ] === 'li' ) {
// There's no good way (that I know) to find if this
// see https://stackoverflow.com/questions/446892/how-to-find-event-listeners-on-a-dom-node-in-javascript-or-in-debugging
// https://codepen.io/azaslavsky/pen/DEJVWv
// So we dont know if its really a clickable element or not :-(
// Assume it is - then we dont fill the pages with unreliable "Click X,Y" selections
// If you switch to "Click X,y" after an element here is setup, it will give the last co-ords anyway
//if (x['isClickable'] || x['tagName'].startsWith('h') || x['tagName'] === 'a' || x['tagName'] === 'button' || x['tagtype'] === 'submit' || x['tagtype'] === 'checkbox' || x['tagtype'] === 'radio' || x['tagtype'] === 'li') {
$ ( 'select' , first _available ) . val ( 'Click element' ) . change ( ) ;
$ ( 'select' , first _available ) . val ( 'Click element' ) . change ( ) ;
$ ( 'input[type=text]' , first _available ) . first ( ) . val ( x [ 'xpath' ] ) ;
$ ( 'input[type=text]' , first _available ) . first ( ) . val ( x [ 'xpath' ] ) ;
found _something = true ;
found _something = true ;
}
//}
}
}
first _available . xpath _data _index = xpath _data _index ;
first _available . xpath _data _index = xpath _data _index ;