Você está na página 1de 2

<input name="login[username]" value="" id="email" type="text" class="input-text

required-entry validate-email" title="Email">


login[username]

when ever selenium is not able to after ececution its displays no such elements
find exception
for the web page loaded by get main page ,selenium will wait the complete page gets
loaded and performs the action
in the the subsuqent web pages ,toperform action selenium willn't ever for 0.1
seconds if the element then it will throw that is "NOSUCHEXCEPTION"
this problem can overcome by using which thread.sleep() method youcan use

pageloadtimeout method
lunch the browser
go to magento.com web site
with in 5 sec page should be loaded
else
its throw exception

if it is loaded click on my account

driver.manage().timeouts().pageLoadTimeout(4, TimeUnit.SECONDS);

<select name="company_type" id="customer_company_type" class="validate-select


required validation-failed" title="">
<option value="">Select Option</option>
<option value="selling">Is a merchant who sells online</option>
<option value="development">Develops Magento extensions</option>
<option value="deployment">Provides deployment, customization and integration
services to merchants</option>
<option value="tech_partner">Tech Partner</option>
<option value="analyst_media">Analyst/Media</option>
</select>

<button type="button" class="button"


onclick="window.location='https://account.magento.com/customer/account/create/';">
<span><span>Register</span></span>
</button>

REGISTER

<input type="text" id="firstname" name="firstname" value="" title="First Name"


class="input-text required-entry validate-name-hyper">
<span class="nav-line-2">Account &amp; Lists<span class="nav-icon nav-arrow"
style="visibility: visible;"></span>

<span class="nav-line-4">Account & Lists</span>


</span>

<a href="https://www.amazon.com/gp/css/homepage.html?ref_=nav_youraccount_btn"
class="nav-a nav-a-2 nav-truncate" data-nav-ref="nav_ya_signin" data-nav-
role="signin" data-ux-jq-mouseenter="true" id="nav-link-accountList" tabindex="61">
<span class="nav-line-1">Hello, pasam</span>
<span class="nav-line-2">Account &amp; Lists<span class="nav-icon nav-arrow"
style="visibility: visible;"></span>
</span>
<span class="nav-line-3">Hi pasam</span>
<span class="nav-line-4">Account &amp; Lists</span>
</a>

<input name="login[password]" type="password" class="input-text required-entry


validate-password-login" id="pass" title="Password" autocomplete="off">
a href="https://account.magento.com/customer/account/login?
_ga=2.140246835.1435355145.1556088698-1344986822.1556088698" data-adobe-
name="Header|GlobalNav|MyAccountClick" data-adobe-action="GlobalNavClick"
onclick="adobeLinkEvent('Header|GlobalNav|MyAccountClick','GlobalNavClick')"><span
class="icon"><i class="fa fa-user"></i></span><span>My Account</span></a>