java - How to handle button off status while working with selenium -


issue :

i working selenium java web browser automation. problem when java code goes particular button click, button remains in off status result of button never clicked , throws exception @ every clickable link present on web.

here code have written link click event. have enabled element.click(). it's not working too.

public string click_on_link(string locatortype, string value)         throws interruptedexception {      string status = "pass";     try {         final locator;         locator = locatorvalue(locatortype, value);         webelement element = driver.findelement(locator);     element.sendkeys(keys.enter);         //element.click();          /*          * element.sendkeys(keys.chord(keys.enter, "a")); element.click();          */     } catch (nosuchelementexception e) {         system.err.format("no element found click" + e);         status = "fail" + "::" + e.getcause();      }     return status; } 

here status of button event whenever selenium tries reach button :

<a class="t3_button_off" onmouseover="window.status='address information'; return true;" 


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -