Python Spynner Filling HTML Fields -


i'm trying fill fields on http://www.united.com/web/en-us/apps/booking/flight/searchaward.aspx?sb=1&cs=n.

however, can't work.

as example, "from" field in "where , when want fly?" box.

import spynner  b = spynner.browser() b.show()  b.load('http://www.united.com/web/en-us/apps/booking/flight/searchaward.aspx?sb=1&cs=n')  b.wk_fill('input[name=ctl00$contentinfo$searchform$airports1$origin$txtorigin]', 'london, england (lhr - heathrow)')  b.browse() # see what's going on. 

when try this, field isn't filled. appreciated!

you need use quotes

b.wk_fill('input[name="ctl00$contentinfo$searchform$airports1$origin$txtorigin"]', 'london, england (lhr - heathrow)') 

with quotes works fine.

p.s. sorry bad english.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -