我正在爲希望我做硒/ junit測試的客戶端工作,但整個用戶界面不顯示任何代碼的html代碼或標題該頁面只是像「歡迎進入......」那樣的內容,您應該如何檢查主頁上或登錄頁面上的內容?硒測試iterface錯過id和標題和其他明智的信息
這是HTML的一個例子:
<div class="site-body m-welcome" data-module="welcome">
<div class="inner">
<h1 class="starred dark"><span>Welcome to ...</span></h1>
<div class="choices">
<div class="choice">
<a href="http://www.alink/account/validate/driver" class="btn btn-primary">Become a xxxxx</a>
</div>
<span class="or"><span>Or</span></span>
<form action="http://www.alink/welcome" method="post" class="choice" data-response-type="json">
<input type="text" name="plate_number" id="car_plate_validation_plate_number" value="" maxlength="8" class="plate required numberplate" placeholder="Enter number plate">
<button type="submit" class="btn btn-primary">Become an yyyyy</button>
<div class="invalid-message inline-modal" data-behavior="modal">
<h1>Sorry - you are not eligible to join the company</h1>
<p>See <a href="#">am I eligile?</a> for full eligibility critera.</p>
</div>
</form>
</div>
顯示的頁面的示例HTML。 – Arran