Sending a web request with a python script to select a specific radio button on a web page -


i have test internal web page. web page contains text fields, buttons, , radio buttons. based on specific radio button selected sub-form displayed in web page.

i'm using urllib2, , of modules, connect web server , perform actions.

however, not able select radio button, via post python script, i'm not able proceed test automation.

reading of online posts selecting radio buttons read people using "mechanize". i'm not familiar this. there specific module in urllib2 allow me send post request select specific radio button.

roland

they referring python module: http://wwwsearch.sourceforge.net/mechanize/. can emulate selected radio button in form posting form urllib2. discussed in post: urllib2: submitting form , redirecting.

imagine have form radio input this:

<input type="radio" value="1" name="something" /> 

the post body be: something=1.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -