使用selenium工具查找xpath
我需要找出下面代码中一个元素的xpath:使用selenium工具查找xpath,xpath,Xpath,我需要找出下面代码中一个元素的xpath: <div class="fbTimelineSection mtm fbTimelineTopSection"> <div id="fbProfileCover" class="drop_elem"> <div id="u_jsonp_2_0" class="cover"> <div id="fbTimelineHeadline" class="clearfix"> <div class="_50z
<div class="fbTimelineSection mtm fbTimelineTopSection">
<div id="fbProfileCover" class="drop_elem">
<div id="u_jsonp_2_0" class="cover">
<div id="fbTimelineHeadline" class="clearfix">
<div class="_50zj">
<div class="_70k">
<div id="u_jsonp_2_2" class="_6_7 clearfix" data-referrer="timeline_light_nav_top">
<a class="_6-6 _6-7" href="https://www.facebook.com/memusipra">
<a class="_6-6" data-medley-id="pagelet_timeline_medley_about" href="https://www.facebook.com/memusipra/about">
<a class="_6-6" data-medley-id="pagelet_timeline_medley_photos" href="https://www.facebook.com/memusipra/photos">
<a class="_6-6" data-medley-id="pagelet_timeline_medley_friends" href="https://www.facebook.com/memusipra/friends">
<div id="u_jsonp_2_3" class="_6a uiPopover _6-6 _9rx">
</div>
我需要查找Xpath的以下内容:
<a class="_6-6" data-medley-id="pagelet_timeline_medley_friends" href="https://www.facebook.com/memusipra/friends">
使用以下查询:
xpath=//a[@data-medley-id="pagelet_timeline_medley_friends"]