firefox - Google places autocomplete with Selenium IDE test -



firefox - Google places autocomplete with Selenium IDE test -

i'm trying create test in selenium ide (from firefox addon) autocomplete place (given google places). need type in input place name , first location.

sequence place "rzeszów, polska": i.stack.imgur.com/gqrmd.png

firstly i've tried mouseover , click action - elements exists didn't create click on autocomplete. next i've tried 2 sequences (with clickat , keydown), didn't create click, despite fact selenium can find right locator. i.stack.imgur.com/f13q7.png

i trying solution jquery autocomplete -> jqueryui.com/autocomplete/ , worked fine there.

i think, problem connected html structure, bold in place name: i.stack.imgur.com/bflye.png

you can test on: jsfiddle.net/dodger/pbbhh/ sequence in selenium ide (shown above) doesn't work google places, solved problem autocomplete?

//moderator: please add together photos , create links post , delete line. thanks.

to forcefulness places autocompletion list appear had send single keydown , keyup events input field. this:

selenium.focus(locator); selenium.type(locator, ""); // clear field (int i=0; i<value.length(); i++) { string c = string.valueof(value.charat(i)); selenium.keydown(locator, c.touppercase()); selenium.keypress(locator, c); selenium.keyup(locator, c.touppercase()); }

finally, select entry of list, i've got working simulating keyboard events (since had no luck mouse events).

keydown arrow downwards key: selenium.keydown(locator, "\u0028"); blur on input field (optional think): selenium.fireevent(locator, "blur");

locator locator input field. \u0028 key code arrow downwards (hex 28 or dec 40)

hope helps.

firefox selenium autocomplete selenium-ide google-places-api

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -