Advertisement
Guest User

Untitled

a guest
May 31st, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <TD class=PlainText>
  2. <INPUT onclick="javascript: ShowHideInvoicePanel();setTimeout('__doPostBack('ctl00$cphClaimFlow$tabcontainerClaimFlow$tabFulfillment$Shipping$rdoYesFindMyPhone','')', 0)" id=ctl00_cphClaimFlow_tabcontainerClaimFlow_tabFulfillment_Shipping_rdoYesFindMyPhone type=radio value=rdoYesFindMyPhone name=ctl00$cphClaimFlow$tabcontainerClaimFlow$tabFulfillment$Shipping$phoneanswer>
  3. <LABEL for=ctl00_cphClaimFlow_tabcontainerClaimFlow_tabFulfillment_Shipping_rdoYesFindMyPhone>Yes</LABEL>
  4. <INPUT onclick="javascript: ShowHideInvoicePanel();setTimeout('__doPostBack('ctl00$cphClaimFlow$tabcontainerClaimFlow$tabFulfillment$Shipping$rdoNoFindMyPhone','')', 0)" id=ctl00_cphClaimFlow_tabcontainerClaimFlow_tabFulfillment_Shipping_rdoNoFindMyPhone type=radio value=rdoNoFindMyPhone name=ctl00$cphClaimFlow$tabcontainerClaimFlow$tabFulfillment$Shipping$phoneanswer>
  5. <LABEL for=ctl00_cphClaimFlow_tabcontainerClaimFlow_tabFulfillment_Shipping_rdoNoFindMyPhone>No</LABEL>
  6.  
  7. WebDriverWait waitForErasePhnYesRadio=new WebDriverWait(driver, timeOut);
  8. WebElement elementErasePhnYesRadio= waitForErasePhnYesRadio.until(ExpectedConditions.elementToBeClickable(By.id("ctl00_cphClaimFlow_tabcontainerClaimFlow_tabFulfillment_Shipping_rdoYesFindMyPhone")));
  9. elementErasePhnYesRadio.click();
  10. logger.info("Clicked on Yes button of erase phone script");
  11.  
  12. if(elementErasePhnYesRadio.isSelected()==false){
  13. System.out.println("is radio btn selected 1 : "+elementErasePhnYesRadio.isSelected());
  14. elementErasePhnYesRadio.click();
  15. System.out.println("is radio btn selected 2 : "+elementErasePhnYesRadio.isSelected());
  16. }
  17. System.out.println("is radio btn selected 3 : "+elementErasePhnYesRadio.isSelected());
  18.  
  19. INFO [main] (ShippingPage.java:45) - Clicked on Yes button of erase phone script
  20. is radio btn selected 1 : false
  21. is radio btn selected 2 : false
  22. is radio btn selected 3 : false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement