I'm new to running tests on webpages and so far things have been going smoothly for me.
Now, I'm trying to change some values in a webform and then click on the "Save & Exit" button.
However, when I view the source using webdriver (driver.getPageSource();
), I can't see the button, only the JavaScript code below. I've simplified the script to show just one button - the one that I need to click.
function getToolbarCfg() {
return [{ btnId: 2, icon:'images/obj16/tsave_.gif', text:'Save & Exit', qtip:'Save Record and Exit', handler:function() { cwc.getCenterWindow().tpzExecute('2',null,'detail'); } }];
Any assistance with this would be greatly appreciated.