I am testing a extjs-based web applaction with robotframework and selenium2library,but I can not locate some elements which is contained by a table component. The selenium2library have a keyword called Execute javascript, so I want to kown how can I execute javascript ,For example how can I execute the js code:
var a=document.getElementById('ext-comp-1155').getElementsByTagName("button");
a[0].click();
Does anyone have successful extjs-based web pages automated testing experiences ? Any help would be appreciated.
You should be able to execute the javascript like this
I.e. event though there are mutliple statements in the javascript, you can give them in single argument, as long as the semicolons are in place.
That can be made a bit more readable like this: