I am doing automation using Python2.7 and selenium for the first time. Now can I write and read also the content below HTML?
Radio buttons
<form name="myWebForm" action="mailto: youremail@email.com " method="post"> <h4>Please select your favorite food category.</h4> <input type="radio" name="food" /> : Italian<br /> <input type="radio" name="food" /> : Greek<br /> <input type="radio" name="food" /> : Chinese<br /> <h4>Please select your gender.</h4> <input type="radio" name="gender" /> : Male<br /> <input type="radio" name="gender" /> : Female<br /> </form>
Single pick list
<select size="3" name="selectionField" multiple="yes" > <option value="CA" >California -- CA </option> <option value="CO" >Colorado -- CO</option> <option value="CN" >Connecticut -- CN</option> </select>
Protection list
<dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl>
Checkboxes
<form name="myWebForm" action="mailto: youremail@email.com " method="post"> <p>Please select every sport that you play.</p> Soccer: <input type="checkbox" name="sports" value="soccer" /><br /> Football: <input type="checkbox" name="sports" value="football" /><br /> Baseball: <input type="checkbox" name="sports" value="baseball" /><br /> Basketball: <input type="checkbox" name="sports" value="basketball" /> </form>
source share