简体   繁体   中英

Finding Elements by ajx attribute

How would I find this using selenium by ajxnameid? In general, ajx attributes?

This code is part of a larger part and ajxnameid is the only unique part of it all.

driver.FindElementBy??

<INPUT tabIndex=0 title="Champ obligatoire" class=class_studio_field_4 style="HEIGHT: 18px; WIDTH: 216px; LEFT: 150px; Z-INDEX: 1174; TOP: 50px; BACKGROUND-COLOR: #ffafaf" unselectable="off" ajxwidth="216" ajxheight="20" ajxtopcontainer="id_controls_area" ajxdesign="false" ajxname="RT_FUND1_1_4" ajxnameid="###RT_FUND1_1_4_54" ajxleft="150" ajxtop="50" ajxhorzalign="left" ajxvertalign="top" ajxhidden="false" ajxevents="undefined" ajxmenuitems="undefined" ajxdynamicmenuitems="undefined" ajxactionrules="undefined" is_add_element="undefined" appended_from="undefined" ajxuniquename="12|RT_FUND1_1_4" ajxoverride="undefined" ajxmasterpanel="false" ajxpath="FUND1" ajxfield="FUND1" ajxstyle="4" ajxexclusive="true" ajxdisabled="false" ajxtabindex="0" ajxtitle="undefined" ajxnotnull="true" ajxhtmlclass="undefined" ajxinnerhelpcaption="undefined" ajxheightlost="2" ajxforcedisabled="false" ajxcheckingrules="undefined" _disabled="false" ajxstarttext ajxsearchdone="false" ajxminchar="undefined" ajxautocompleteonfocus="undefined" ajxautocompleteifemptyvalue="undefined" ajxevent="undefined" ajxloaddata="undefined" ajxnocache="undefined" ajxseparators="undefined" ajxaddparam="undefined" ajxcall_condition="undefined" ajxinlinestyle="undefined" ajxaddparamexpr="undefined" ajxcontrolclass="CTRL_AUTOCOMPLETE" ajxnull="false" ajxcheckable="true" ajxbackcolor="#FFE0E1" ajxerror="Champ obligatoire">
driver.FindElement(By.CssSelector("input[ajxnameid='###RT_FUND1_1_4_54']"));

My preference is not to use XPath. Even my developers hate it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM