Подскажите по xpath, нужно вытащить внутреннее значение

backoff

Client
Регистрация
20.04.2015
Сообщения
6 052
Благодарностей
6 481
Баллы
113
ку. имеем код

C#:
<div class="UniversalTileList"><div class="UniversalTileList-tile"><div class="UniversalTile" data-t="phones.settings.sms2fa"><div class="UniversalTile-leftComponentWrapper UniversalTile-leftComponentWrapper_hasLeftComponentBg"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6.8C2 5.11984 2 4.27976 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.27976 2 5.11984 2 6.8 2H9.2C10.8802 2 11.7202 2 12.362 2.32698C12.9265 2.6146 13.3854 3.07354 13.673 3.63803C14 4.27976 14 5.11984 14 6.8V10.9375L12 11.5625V5.70526C12 5.14521 12 4.86518 11.891 4.65127C11.7951 4.46311 11.6422 4.31013 11.454 4.21426C11.2401 4.10526 10.9601 4.10526 10.4 4.10526H5.6C5.03995 4.10526 4.75992 4.10526 4.54601 4.21426C4.35785 4.31013 4.20487 4.46311 4.10899 4.65127C4 4.86518 4 5.14521 4 5.70527V18.2947C4 18.8548 4 19.1348 4.10899 19.3487C4.20487 19.5369 4.35785 19.6899 4.54601 19.7857C4.75992 19.8947 5.03995 19.8947 5.6 19.8947H9.91324C10.1864 20.6342 10.5355 21.3431 10.9805 21.9724C10.5126 22 9.93716 22 9.2 22H6.8C5.11984 22 4.27976 22 3.63803 21.673C3.07354 21.3854 2.6146 20.9265 2.32698 20.362C2 19.7202 2 18.8802 2 17.2V6.8ZM6.5 17H9.19373C9.2922 17.6505 9.4296 18.326 9.6197 18.9929C9.58045 18.9976 9.54051 19 9.5 19H6.5C5.94772 19 5.5 18.5523 5.5 18C5.5 17.4477 5.94772 17 6.5 17ZM17 14.1082L13.0203 15.4348C13.0635 16.5788 13.1982 17.7634 13.6151 18.8405C14.1122 20.1247 15.0241 21.2978 17.001 21.9232C18.9957 21.2969 19.8985 20.1475 20.3876 18.8981C20.8086 17.8226 20.9405 16.6267 20.9816 15.4354L17 14.1082ZM11 14C11 17 11 22.5 17 24.0001C23 22.5 23 17.1722 23 14L17 12L11 14Z" fill="#262633"></path></svg></div><div class="UniversalTile-textBlock"><div class="UniversalTile-title">Входить с&nbsp;паролем и&nbsp;смс</div><div class="UniversalTile-description UniversalTile-description_noDescriptionMarginBottom">Надёжная защита аккаунта</div></div><div class="UniversalTile-rightComponentWrapper UniversalTile-rightComponentWrapper_preventRightComponentClick"><span class="Tumbler Tumbler_size_m Tumbler_view_default" id="xuniq40"><button aria-pressed="false" class="Tumbler-Button" type="button"></button><input type="checkbox" id="control-xuniq40" hidden="" class="Tumbler-Control" value="false" autocomplete="off"></span></div></div></div><div class="UniversalTileList-sep"></div><div class="UniversalTileList-tile"><div class="UniversalTile" data-t="phones.settings.authBySms"><div class="UniversalTile-leftComponentWrapper UniversalTile-leftComponentWrapper_hasLeftComponentBg"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 9.4C2 7.15979 2 6.03969 2.43597 5.18404C2.81947 4.43139 3.43139 3.81947 4.18404 3.43597C5.03969 3 6.15979 3 8.4 3H15.6C17.8402 3 18.9603 3 19.816 3.43597C20.5686 3.81947 21.1805 4.43139 21.564 5.18404C22 6.03969 22 7.15979 22 9.4V12.6C22 14.8402 22 15.9603 21.564 16.816C21.1805 17.5686 20.5686 18.1805 19.816 18.564C18.9603 19 17.8402 19 15.6 19H12L7.49251 22.005C7.00768 22.3282 6.76526 22.4898 6.56424 22.4778C6.38911 22.4674 6.22734 22.3808 6.12149 22.2409C6 22.0803 6 21.7889 6 21.2062V19C3.79086 19 2 17.2091 2 15V9.4ZM4 7C4 5.89543 4.89543 5 6 5H18C19.1046 5 20 5.89543 20 7V15C20 16.1046 19.1046 17 18 17H11.2624L8 19.3011V18.5C8 18.0341 8 17.8011 7.92388 17.6173C7.82239 17.3723 7.62771 17.1776 7.38268 17.0761C7.19891 17 6.96594 17 6.5 17H6C4.89543 17 4 16.1046 4 15V7ZM12 12.5C12.8284 12.5 13.5 11.8284 13.5 11C13.5 10.1716 12.8284 9.5 12 9.5C11.1716 9.5 10.5 10.1716 10.5 11C10.5 11.8284 11.1716 12.5 12 12.5ZM18 11C18 11.8284 17.3284 12.5 16.5 12.5C15.6716 12.5 15 11.8284 15 11C15 10.1716 15.6716 9.5 16.5 9.5C17.3284 9.5 18 10.1716 18 11ZM7.5 12.5C8.32843 12.5 9 11.8284 9 11C9 10.1716 8.32843 9.5 7.5 9.5C6.67157 9.5 6 10.1716 6 11C6 11.8284 6.67157 12.5 7.5 12.5Z" fill="black"></path></svg></div><div class="UniversalTile-textBlock"><div class="UniversalTile-title">Входить по&nbsp;смс</div><div class="UniversalTile-description UniversalTile-description_noDescriptionMarginBottom">Входите по&nbsp;коду из&nbsp;смс вместо пароля</div></div><div class="UniversalTile-rightComponentWrapper UniversalTile-rightComponentWrapper_preventRightComponentClick"><span class="Tumbler Tumbler_size_m Tumbler_view_default" id="xuniq41"><button aria-pressed="false" class="Tumbler-Button xh-highlight" type="button"></button><input type="checkbox" id="control-xuniq41" hidden="" class="Tumbler-Control" value="false" autocomplete="off" checked=""></span></div></div></div><div class="UniversalTileList-sep"></div><div class="UniversalTileList-tile"><div class="UniversalTile" data-t="phones.settings.alias.login"><div class="UniversalTile-leftComponentWrapper UniversalTile-leftComponentWrapper_hasLeftComponentBg"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.32698 3.63803C2 4.27976 2 5.11984 2 6.8V17.2C2 18.8802 2 19.7202 2.32698 20.362C2.6146 20.9265 3.07354 21.3854 3.63803 21.673C4.27976 22 5.11984 22 6.8 22H9.2C9.90008 22 10.4543 22 10.9091 21.9763C11.3693 21.2801 12.2139 20.3243 13.237 20H10.4H9.38702H5.6C5.03995 20 4.75992 20 4.54601 19.891C4.35785 19.7951 4.20487 19.6422 4.10899 19.454C4 19.2401 4 18.9601 4 18.4V5.6C4 5.03995 4 4.75992 4.10899 4.54601C4.20487 4.35785 4.35785 4.20487 4.54601 4.10899C4.75992 4 5.03995 4 5.6 4H10.4C10.9601 4 11.2401 4 11.454 4.10899C11.6422 4.20487 11.7951 4.35785 11.891 4.54601C12 4.75992 12 5.03995 12 5.6V11.2951C12.4068 10.3997 13.1797 9.51066 14 9L14 6.8C14 5.11984 14 4.27976 13.673 3.63803C13.3854 3.07354 12.9265 2.6146 12.362 2.32698C11.7202 2 10.8802 2 9.2 2H6.8C5.11984 2 4.27976 2 3.63803 2.32698C3.07354 2.6146 2.6146 3.07354 2.32698 3.63803ZM5.5 18C5.5 17.4477 5.94772 17 6.5 17H9.5C10.0523 17 10.5 17.4477 10.5 18C10.5 18.5523 10.0523 19 9.5 19H6.5C5.94772 19 5.5 18.5523 5.5 18ZM15.5 14.142C15.5 16.0975 16.6661 17 17.5009 17C18.3347 17 19.5 16.0988 19.5 14.142C19.5 13.2761 19.2558 12.7746 19.006 12.5067C18.7751 12.2591 18.3453 12 17.5009 12C16.6565 12 16.2259 12.2591 15.9945 12.5072C15.7443 12.7753 15.5 13.2767 15.5 14.142ZM13.5 14.142C13.5 16.7564 15.1632 19 17.5009 19C19.8386 19 21.5 16.7564 21.5 14.142C21.5 11.6667 20.083 10 17.5009 10C14.9188 10 13.5 11.6667 13.5 14.142ZM14.2071 23.7071C14.9771 22.9371 16.1985 22.5 17.5 22.5C18.8015 22.5 20.0229 22.9371 20.7929 23.7071C21.1834 24.0976 21.8166 24.0976 22.2071 23.7071C22.5976 23.3166 22.5976 22.6834 22.2071 22.2929C20.9771 21.0629 19.1985 20.5 17.5 20.5C15.8015 20.5 14.0229 21.0629 12.7929 22.2929C12.4024 22.6834 12.4024 23.3166 12.7929 23.7071C13.1834 24.0976 13.8166 24.0976 14.2071 23.7071Z" fill="#262633"></path></svg></div><div class="UniversalTile-textBlock"><div class="UniversalTile-title">Телефон как логин</div><div class="UniversalTile-description UniversalTile-description_noDescriptionMarginBottom">Входите по&nbsp;номеру телефона вместо логина</div></div><div class="UniversalTile-rightComponentWrapper UniversalTile-rightComponentWrapper_preventRightComponentClick"><span class="Tumbler Tumbler_size_m Tumbler_view_default" id="xuniq42"><button aria-pressed="true" class="Tumbler-Button" type="button"></button><input type="checkbox" id="control-xuniq42" hidden="" class="Tumbler-Control" value="true" autocomplete="off" checked=""></span></div></div></div><div class="UniversalTileList-sep"></div><div class="UniversalTileList-tile"><div class="UniversalTile" data-t="phones.settings.alias.email"><div class="UniversalTile-leftComponentWrapper UniversalTile-leftComponentWrapper_hasLeftComponentBg"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6.8C2 5.11984 2 4.27976 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.27976 2 5.11984 2 6.8 2H9.2C10.8802 2 11.7202 2 12.362 2.32698C12.9265 2.6146 13.3854 3.07354 13.673 3.63803C14 4.27976 14 5.11984 14 6.8V9H12V5.70526C12 5.14521 12 4.86518 11.891 4.65127C11.7951 4.46311 11.6422 4.31013 11.454 4.21426C11.2401 4.10526 10.9601 4.10526 10.4 4.10526H5.6C5.03995 4.10526 4.75992 4.10526 4.54601 4.21426C4.35785 4.31013 4.20487 4.46311 4.10899 4.65127C4 4.86518 4 5.14521 4 5.70527V18.2947C4 18.8548 4 19.1348 4.10899 19.3487C4.20487 19.5369 4.35785 19.6899 4.54601 19.7857C4.75992 19.8947 5.03995 19.8947 5.6 19.8947H6V21.9983C4.83507 21.9902 4.16873 21.9434 3.63803 21.673C3.07354 21.3854 2.6146 20.9265 2.32698 20.362C2 19.7202 2 18.8802 2 17.2V6.8ZM11 11H14H20C21.6569 11 23 12.3431 23 14V19C23 20.6569 21.6569 22 20 22H11C9.34315 22 8 20.6569 8 19V14C8 12.3431 9.34315 11 11 11ZM14 14.7917L14 13H11C10.7405 13 10.504 13.0989 10.3263 13.261L14 14.7917ZM13.9999 16.9583L13.9999 17.4691L14 17.2V16.9583L14.7308 17.2628C15.2231 17.468 15.7769 17.468 16.2692 17.2628L21 15.2917V19C21 19.5523 20.5523 20 20 20H11C10.4477 20 10 19.5523 10 19V15.2917L13.9999 16.9583ZM20.6737 13.261L15.5 15.4167L14 14.7917V13H20C20.2595 13 20.496 13.0989 20.6737 13.261Z" fill="#262633"></path></svg></div><div class="UniversalTile-textBlock"><div class="UniversalTile-title">Телефон как почта</div><div class="UniversalTile-description UniversalTile-description_noDescriptionMarginBottom">Получайте почту на адрес [email protected]</div></div><div class="UniversalTile-rightComponentWrapper UniversalTile-rightComponentWrapper_preventRightComponentClick"><span class="Tumbler Tumbler_size_m Tumbler_view_default" id="xuniq43"><button aria-pressed="false" class="Tumbler-Button" type="button"></button><input type="checkbox" id="control-xuniq43" hidden="" class="Tumbler-Control" value="false" autocomplete="off"></span></div></div></div></div>
из этого нужно получить
C#:
<button aria-pressed="false" class="Tumbler-Button" type="button">
а конкретно это значение - false
оно имеет 2 варианта - true и false

как это сделать xpath в 1 кубик БЕЗ регулярок

спасибо
 

volody00

Client
Регистрация
06.09.2016
Сообщения
918
Благодарностей
953
Баллы
93
их там 4. номер сам поставь, какой нужен

C#:
(//button)[1]
 

Вложения

viol2021

Client
Регистрация
12.01.2021
Сообщения
482
Благодарностей
180
Баллы
43
ку. имеем код

C#:
<div class="UniversalTileList"><div class="UniversalTileList-tile"><div class="UniversalTile" data-t="phones.settings.sms2fa"><div class="UniversalTile-leftComponentWrapper UniversalTile-leftComponentWrapper_hasLeftComponentBg"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6.8C2 5.11984 2 4.27976 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.27976 2 5.11984 2 6.8 2H9.2C10.8802 2 11.7202 2 12.362 2.32698C12.9265 2.6146 13.3854 3.07354 13.673 3.63803C14 4.27976 14 5.11984 14 6.8V10.9375L12 11.5625V5.70526C12 5.14521 12 4.86518 11.891 4.65127C11.7951 4.46311 11.6422 4.31013 11.454 4.21426C11.2401 4.10526 10.9601 4.10526 10.4 4.10526H5.6C5.03995 4.10526 4.75992 4.10526 4.54601 4.21426C4.35785 4.31013 4.20487 4.46311 4.10899 4.65127C4 4.86518 4 5.14521 4 5.70527V18.2947C4 18.8548 4 19.1348 4.10899 19.3487C4.20487 19.5369 4.35785 19.6899 4.54601 19.7857C4.75992 19.8947 5.03995 19.8947 5.6 19.8947H9.91324C10.1864 20.6342 10.5355 21.3431 10.9805 21.9724C10.5126 22 9.93716 22 9.2 22H6.8C5.11984 22 4.27976 22 3.63803 21.673C3.07354 21.3854 2.6146 20.9265 2.32698 20.362C2 19.7202 2 18.8802 2 17.2V6.8ZM6.5 17H9.19373C9.2922 17.6505 9.4296 18.326 9.6197 18.9929C9.58045 18.9976 9.54051 19 9.5 19H6.5C5.94772 19 5.5 18.5523 5.5 18C5.5 17.4477 5.94772 17 6.5 17ZM17 14.1082L13.0203 15.4348C13.0635 16.5788 13.1982 17.7634 13.6151 18.8405C14.1122 20.1247 15.0241 21.2978 17.001 21.9232C18.9957 21.2969 19.8985 20.1475 20.3876 18.8981C20.8086 17.8226 20.9405 16.6267 20.9816 15.4354L17 14.1082ZM11 14C11 17 11 22.5 17 24.0001C23 22.5 23 17.1722 23 14L17 12L11 14Z" fill="#262633"></path></svg></div><div class="UniversalTile-textBlock"><div class="UniversalTile-title">Входить с&nbsp;паролем и&nbsp;смс</div><div class="UniversalTile-description UniversalTile-description_noDescriptionMarginBottom">Надёжная защита аккаунта</div></div><div class="UniversalTile-rightComponentWrapper UniversalTile-rightComponentWrapper_preventRightComponentClick"><span class="Tumbler Tumbler_size_m Tumbler_view_default" id="xuniq40"><button aria-pressed="false" class="Tumbler-Button" type="button"></button><input type="checkbox" id="control-xuniq40" hidden="" class="Tumbler-Control" value="false" autocomplete="off"></span></div></div></div><div class="UniversalTileList-sep"></div><div class="UniversalTileList-tile"><div class="UniversalTile" data-t="phones.settings.authBySms"><div class="UniversalTile-leftComponentWrapper UniversalTile-leftComponentWrapper_hasLeftComponentBg"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 9.4C2 7.15979 2 6.03969 2.43597 5.18404C2.81947 4.43139 3.43139 3.81947 4.18404 3.43597C5.03969 3 6.15979 3 8.4 3H15.6C17.8402 3 18.9603 3 19.816 3.43597C20.5686 3.81947 21.1805 4.43139 21.564 5.18404C22 6.03969 22 7.15979 22 9.4V12.6C22 14.8402 22 15.9603 21.564 16.816C21.1805 17.5686 20.5686 18.1805 19.816 18.564C18.9603 19 17.8402 19 15.6 19H12L7.49251 22.005C7.00768 22.3282 6.76526 22.4898 6.56424 22.4778C6.38911 22.4674 6.22734 22.3808 6.12149 22.2409C6 22.0803 6 21.7889 6 21.2062V19C3.79086 19 2 17.2091 2 15V9.4ZM4 7C4 5.89543 4.89543 5 6 5H18C19.1046 5 20 5.89543 20 7V15C20 16.1046 19.1046 17 18 17H11.2624L8 19.3011V18.5C8 18.0341 8 17.8011 7.92388 17.6173C7.82239 17.3723 7.62771 17.1776 7.38268 17.0761C7.19891 17 6.96594 17 6.5 17H6C4.89543 17 4 16.1046 4 15V7ZM12 12.5C12.8284 12.5 13.5 11.8284 13.5 11C13.5 10.1716 12.8284 9.5 12 9.5C11.1716 9.5 10.5 10.1716 10.5 11C10.5 11.8284 11.1716 12.5 12 12.5ZM18 11C18 11.8284 17.3284 12.5 16.5 12.5C15.6716 12.5 15 11.8284 15 11C15 10.1716 15.6716 9.5 16.5 9.5C17.3284 9.5 18 10.1716 18 11ZM7.5 12.5C8.32843 12.5 9 11.8284 9 11C9 10.1716 8.32843 9.5 7.5 9.5C6.67157 9.5 6 10.1716 6 11C6 11.8284 6.67157 12.5 7.5 12.5Z" fill="black"></path></svg></div><div class="UniversalTile-textBlock"><div class="UniversalTile-title">Входить по&nbsp;смс</div><div class="UniversalTile-description UniversalTile-description_noDescriptionMarginBottom">Входите по&nbsp;коду из&nbsp;смс вместо пароля</div></div><div class="UniversalTile-rightComponentWrapper UniversalTile-rightComponentWrapper_preventRightComponentClick"><span class="Tumbler Tumbler_size_m Tumbler_view_default" id="xuniq41"><button aria-pressed="false" class="Tumbler-Button xh-highlight" type="button"></button><input type="checkbox" id="control-xuniq41" hidden="" class="Tumbler-Control" value="false" autocomplete="off" checked=""></span></div></div></div><div class="UniversalTileList-sep"></div><div class="UniversalTileList-tile"><div class="UniversalTile" data-t="phones.settings.alias.login"><div class="UniversalTile-leftComponentWrapper UniversalTile-leftComponentWrapper_hasLeftComponentBg"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.32698 3.63803C2 4.27976 2 5.11984 2 6.8V17.2C2 18.8802 2 19.7202 2.32698 20.362C2.6146 20.9265 3.07354 21.3854 3.63803 21.673C4.27976 22 5.11984 22 6.8 22H9.2C9.90008 22 10.4543 22 10.9091 21.9763C11.3693 21.2801 12.2139 20.3243 13.237 20H10.4H9.38702H5.6C5.03995 20 4.75992 20 4.54601 19.891C4.35785 19.7951 4.20487 19.6422 4.10899 19.454C4 19.2401 4 18.9601 4 18.4V5.6C4 5.03995 4 4.75992 4.10899 4.54601C4.20487 4.35785 4.35785 4.20487 4.54601 4.10899C4.75992 4 5.03995 4 5.6 4H10.4C10.9601 4 11.2401 4 11.454 4.10899C11.6422 4.20487 11.7951 4.35785 11.891 4.54601C12 4.75992 12 5.03995 12 5.6V11.2951C12.4068 10.3997 13.1797 9.51066 14 9L14 6.8C14 5.11984 14 4.27976 13.673 3.63803C13.3854 3.07354 12.9265 2.6146 12.362 2.32698C11.7202 2 10.8802 2 9.2 2H6.8C5.11984 2 4.27976 2 3.63803 2.32698C3.07354 2.6146 2.6146 3.07354 2.32698 3.63803ZM5.5 18C5.5 17.4477 5.94772 17 6.5 17H9.5C10.0523 17 10.5 17.4477 10.5 18C10.5 18.5523 10.0523 19 9.5 19H6.5C5.94772 19 5.5 18.5523 5.5 18ZM15.5 14.142C15.5 16.0975 16.6661 17 17.5009 17C18.3347 17 19.5 16.0988 19.5 14.142C19.5 13.2761 19.2558 12.7746 19.006 12.5067C18.7751 12.2591 18.3453 12 17.5009 12C16.6565 12 16.2259 12.2591 15.9945 12.5072C15.7443 12.7753 15.5 13.2767 15.5 14.142ZM13.5 14.142C13.5 16.7564 15.1632 19 17.5009 19C19.8386 19 21.5 16.7564 21.5 14.142C21.5 11.6667 20.083 10 17.5009 10C14.9188 10 13.5 11.6667 13.5 14.142ZM14.2071 23.7071C14.9771 22.9371 16.1985 22.5 17.5 22.5C18.8015 22.5 20.0229 22.9371 20.7929 23.7071C21.1834 24.0976 21.8166 24.0976 22.2071 23.7071C22.5976 23.3166 22.5976 22.6834 22.2071 22.2929C20.9771 21.0629 19.1985 20.5 17.5 20.5C15.8015 20.5 14.0229 21.0629 12.7929 22.2929C12.4024 22.6834 12.4024 23.3166 12.7929 23.7071C13.1834 24.0976 13.8166 24.0976 14.2071 23.7071Z" fill="#262633"></path></svg></div><div class="UniversalTile-textBlock"><div class="UniversalTile-title">Телефон как логин</div><div class="UniversalTile-description UniversalTile-description_noDescriptionMarginBottom">Входите по&nbsp;номеру телефона вместо логина</div></div><div class="UniversalTile-rightComponentWrapper UniversalTile-rightComponentWrapper_preventRightComponentClick"><span class="Tumbler Tumbler_size_m Tumbler_view_default" id="xuniq42"><button aria-pressed="true" class="Tumbler-Button" type="button"></button><input type="checkbox" id="control-xuniq42" hidden="" class="Tumbler-Control" value="true" autocomplete="off" checked=""></span></div></div></div><div class="UniversalTileList-sep"></div><div class="UniversalTileList-tile"><div class="UniversalTile" data-t="phones.settings.alias.email"><div class="UniversalTile-leftComponentWrapper UniversalTile-leftComponentWrapper_hasLeftComponentBg"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6.8C2 5.11984 2 4.27976 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.27976 2 5.11984 2 6.8 2H9.2C10.8802 2 11.7202 2 12.362 2.32698C12.9265 2.6146 13.3854 3.07354 13.673 3.63803C14 4.27976 14 5.11984 14 6.8V9H12V5.70526C12 5.14521 12 4.86518 11.891 4.65127C11.7951 4.46311 11.6422 4.31013 11.454 4.21426C11.2401 4.10526 10.9601 4.10526 10.4 4.10526H5.6C5.03995 4.10526 4.75992 4.10526 4.54601 4.21426C4.35785 4.31013 4.20487 4.46311 4.10899 4.65127C4 4.86518 4 5.14521 4 5.70527V18.2947C4 18.8548 4 19.1348 4.10899 19.3487C4.20487 19.5369 4.35785 19.6899 4.54601 19.7857C4.75992 19.8947 5.03995 19.8947 5.6 19.8947H6V21.9983C4.83507 21.9902 4.16873 21.9434 3.63803 21.673C3.07354 21.3854 2.6146 20.9265 2.32698 20.362C2 19.7202 2 18.8802 2 17.2V6.8ZM11 11H14H20C21.6569 11 23 12.3431 23 14V19C23 20.6569 21.6569 22 20 22H11C9.34315 22 8 20.6569 8 19V14C8 12.3431 9.34315 11 11 11ZM14 14.7917L14 13H11C10.7405 13 10.504 13.0989 10.3263 13.261L14 14.7917ZM13.9999 16.9583L13.9999 17.4691L14 17.2V16.9583L14.7308 17.2628C15.2231 17.468 15.7769 17.468 16.2692 17.2628L21 15.2917V19C21 19.5523 20.5523 20 20 20H11C10.4477 20 10 19.5523 10 19V15.2917L13.9999 16.9583ZM20.6737 13.261L15.5 15.4167L14 14.7917V13H20C20.2595 13 20.496 13.0989 20.6737 13.261Z" fill="#262633"></path></svg></div><div class="UniversalTile-textBlock"><div class="UniversalTile-title">Телефон как почта</div><div class="UniversalTile-description UniversalTile-description_noDescriptionMarginBottom">Получайте почту на адрес [email protected]</div></div><div class="UniversalTile-rightComponentWrapper UniversalTile-rightComponentWrapper_preventRightComponentClick"><span class="Tumbler Tumbler_size_m Tumbler_view_default" id="xuniq43"><button aria-pressed="false" class="Tumbler-Button" type="button"></button><input type="checkbox" id="control-xuniq43" hidden="" class="Tumbler-Control" value="false" autocomplete="off"></span></div></div></div></div>
из этого нужно получить
C#:
<button aria-pressed="false" class="Tumbler-Button" type="button">
а конкретно это значение - false
оно имеет 2 варианта - true и false

как это сделать xpath в 1 кубик БЕЗ регулярок

спасибо
Можно проверить false , если нет, то значит true
return instance.ActiveTab.FindElementsByXPath("//button[@aria-pressed='false']").Count();
 

backoff

Client
Регистрация
20.04.2015
Сообщения
6 052
Благодарностей
6 481
Баллы
113
Можно проверить false , если нет, то значит true
я это понимаю.
но просьбы была конкретно в том, чтоб вытащить значение
их там 4. номер сам поставь, какой нужен
да, забыл указать номер, спасибо, то что надо!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)