

想使用xpath定位可是都不稳定,求大佬指导
下列是层级元素信息
<div class="J_MIDDLEWARE_FRAME_WIDGET" style="transform: scale(1) translateZ(0px); transform-origin: 0px 0px; width: 2047.5px; height: 1429px; z-index: 2147483647; position: fixed; left: 0px; top: 0px; background: rgba(0, 0, 0, 0.5); display: block;"><img src="https://gw.alicdn.com/tfs/TB1QZN.CYj1gK0jSZFuXXcrHpXa-200-200.png" style="position: absolute; width: 15px; height: 15px; top: 50%; left: 50%; cursor: pointer; border: 0px; z-index: 1; overflow: hidden; margin-top: -136px; margin-left: 171px;"><iframe src="https://h5api.m.taobao.com:443//h5/mtop.taobao.youngtao.agent.relation.list/1.0/_____tmd_____/punish?x5secdata=xga8b8b23f19462865ja14de5e57a870087997aa4e10e1639f331759653775a-717315356a391288256abaac3en2220607403390a33bb04fa4a99d1e923e7b584e7405f71b43__bx__h5api.m.taobao.com:443/h5/mtop.taobao.youngtao.agent.relation.list/1.0&x5step=2&action=captcha&pureCaptcha=" style="position: absolute; inset: 0px; margin: auto; width: 420px; height: 320px; border: 0px; background: rgb(255, 255, 255); overflow: hidden; border-radius: 18px;"></iframe></div>
<iframe src="https://h5api.m.taobao.com:443//h5/mtop.taobao.youngtao.agent.relation.list/1.0/_____tmd_____/punish?x5secdata=xga8b8b23f19462865ja14de5e57a870087997aa4e10e1639f331759653775a-717315356a391288256abaac3en2220607403390a33bb04fa4a99d1e923e7b584e7405f71b43__bx__h5api.m.taobao.com:443/h5/mtop.taobao.youngtao.agent.relation.list/1.0&x5step=2&action=captcha&pureCaptcha=" style="position: absolute; inset: 0px; margin: auto; width: 420px; height: 320px; border: 0px; background: rgb(255, 255, 255); overflow: hidden; border-radius: 18px;"></iframe>
最终要定位的元素
<span id="nc_1_n1z" class="nc_iconfont btn_slide" aria-label="滑块" tabindex="0" role="button" style="left: 0px;"></span>