<div class="popover-content">
<div class="">
<article class=" col-sm-2 nav-color login">
<form class="form-nav-login" title="form-nav-login" action="/" method="post">
<div class="input-field alt">
<input name="email" title="email" class="email" required="" type="text">
<label>Username</label>
<span class="bar"></span>
<span class="error-message">Required</span>
</div>
<div class="input-field alt">
<input title="password" name="password" class="password" required="" type="password">
<label>Password</label>
<span class="bar"></span>
<span class="error-message">Required</span>
</div>
<button type="submit" class="button primary regular btn-block login-btn">Log In</button>
<p class="smallest forgot-username text-center">
Forgot</p> <p><a href="/spa/#/login/forgot-username" role="button" class="text-link">Username</a> or <a href="/us/home-reference" role="button" class="text-link">Password </a>?</p>
****<a href="/spa/#/account" class="button secondary-alt btn-block signup-btn" role="button">Sign up</a>****
</form>
</article>
</div></div>
我在Bold源代码行下尝试过以下css:
这些css和量角器预期条件都不适用于此。 这是图像:
这是一种托盘。一旦我点击注册/登录。此托盘将弹出。我必须点击注册。
在背景中,图片每2秒钟滑动一次。
答案 0 :(得分:0)
看起来您的元素是&#34; forgotPassword&#34;链接,我不确定它是默认可见还是你需要执行一些操作。但请尝试以下代码并检查..
var EC = protractor.ExpectedConditions;
browser.wait(EC.visibilityOf(element(by.cssContainingText('a', 'Sign up'))), 5000);
element(by.cssContainingText('a', 'Sign up')).click()