文本“登录"的xpath;和登录按钮 [英] xpath for Text "Login" and the login button

查看:270
本文介绍了文本“登录"的xpath;和登录按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以下代码中找不到登录按钮xpath登录文本.请帮助我.

I cannot find the xpath for the Login button and the Login text in the below code. Please help me.

<header id="primary-header" role="banner">
  <div id="header-left-links" role="navigation">
    <div id="header-middle-links">
      <div id="header-right-links">
        <ul>
          <li>
            <li>
              <a class="login header-right-label open" data-side-panel-trigger="login" href="#" aria-expanded="true">
                Log In
                <span class="icon-account-info"/>
              </a>
            </li>

推荐答案

如果xPath不可用,请自行制作

If xPath is not available just make your own

//a[@class='login header-right-label open']

使用它肯定会起作用

语法:

//HTMLtag[@locatorname='Locatorvalue'] 

此语法用于制作xPath.

This syntax is used to make xPath.

这篇关于文本“登录"的xpath;和登录按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆