Hi All,
I am testing an application in which Google Map API is integrated.
I am using class GMap2 of Google Map API.
class GMap2 has a method setUI, which we are using to hide the unnecessary Map
controls like map scale.
code snippet:
---------------
function setMapUI(mapObj) {
var customUI = mapObj.getDefaultUI();
customUI.controls.maptypecontrol = false;
customUI.controls.scalecontrol = false;
return customUI;
}
var map = new GMap2(document.getElementById("map"));
map.setUI(setMapUI(map));
I have written a webtest to check the Map functionality.But, my webtest is
always failing at last line of code i.e map.setUI(setMapUI(map));
This code works fine if i access application in normal browser like IE,
Firefox. But, webtest is the one which is always failing.
Does anybody of you have came across this issue.
Thanks
Paresh Gadre