Ask: Date selection box, how selenium locates page elements_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:51:48
Original
1660 people have browsed it

Please tell me how to position the page elements (year, month) in the following html. I have tried many methods but can’t.

<div class="inputRow"><span>购车日期</span><input id="buyDate" type="hidden" name="buyDate" value="2013-12"><span id="year__jQSelect0" class="dropdown" tabindex="0" style="width: 72px; height: 31px; z-index: auto; position: relative;"><select id="year" class="select_yy select_zdy2" onchange="changeBuyDate(this)" style="display: none;"><option value="2004">2004</option><option value="2005">2005</option><option value="2006">2006</option><option value="2007">2007</option><option value="2008">2008</option><option value="2009">2009</option><option value="2010">2010</option><option value="2011">2011</option><option value="2012">2012</option><option value="2013">2013</option><option value="2014" selected="true">2014</option></select><span class="dropselectbox select_zdy2" style="z-index: 101;"><h4 class="" style="width: 44px; padding-right: 24px;">2013</h4><ul style="width: 63px; display: none; top: 31px;"></ul></span></span><lable style="font-weight:normal;color:white;">年</lable><span id="month__jQSelect1" class="dropdown" tabindex="0" style="width: 72px; height: 31px; z-index: 99;"><select id="month" class="select_mm select_zdy2" onchange="changeBuyDate(this)" style="display: none;"><option value="01"> 01 </option><option value="02"> 02 </option><option value="03"> 03 </option><option value="04"> 04 </option><option value="05"> 05 </option><option value="06"> 06 </option><option value="07"> 07 </option><option value="08"> 08 </option><option value="09"> 09 </option><option value="10"> 10 </option><option value="11"> 11 </option><option value="12"> 12 </option></select><span class="dropselectbox select_zdy2" style="z-index: 101;"><h4 class="" style="width: 44px; padding-right: 24px;"> 12 </h4><ul style="width: 63px; display: none;"></ul></span></span><lable style="font-weight:normal;color:white;">月</lable></div>
Copy after login


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!