Sígueme en Facebook

29 de febrero de 2012
0 comentarios

Clicking on Google Maps with Selenium IDE

13:35

I've been searching a long time in the Forums the way to put a marker with Selenium IDE to test the funcionality of my Google Maps v3 application.

This works for me:


1) Set “optimized : true” in the markers' javascript.

myMarker = new google.maps.Marker({
            position: latLng,
            map: map,
            optimized : false,
            draggable: false
        });



2) Click on the map saving the events replacing the command "click” by "clickAt" and  adding the coordenate. Don't change the target.

Command : clickAt

Target : //div[@id='divMapaModificar']/div/div/div/div[4]/div/div/div

Value: -90,0



Please, click on "útil" if it works. Thank you.








0 comentarios:

Publicar un comentario

 
Toggle Footer
Top