Tuesday, August 9, 2016

How to automate radio button in Selenium Webdriver


Hidden elements Male Female



Normal Scenario Java C# Python Ruby



Hobbies Singing Coding

79 comments:

  1. Hi Mukesh,
    I went through your online video How to handle hidden webelements in Selenium Webdriver
    https://www.youtube.com/watch?v=2eEr0jtmpwE

    So, which is the next video in continuation of this videos.

    Thanks,
    Paramjeet

    ReplyDelete
  2. Hi Mukesh,
    I too checked your online video How to handle hidden web elements in Selenium Web driver on
    https://www.youtube.com/watch?v=2eEr0jtmpwE

    So, which is the next video in continuation of this videos, as on youtube after hidden elements its mouse hover video.Can you please let me know ..

    Thanks
    Sohail

    ReplyDelete
  3. Hi Mukesh,
    This video was really helpful!
    I'm facing challenge currently, like when I try to automate (the same web page) in different browsers, I get the 'unable to locate element' (timeout) exception in either of them ie., it runs successfully in one browser but get an exception in the other, running successfully in all 3 is hardly being possible
    Can u suggest any solution for this

    ReplyDelete
  4. Hi Mukesh,
    I'm facing issue while selecting an element from a Select dropdown, if I use dropdown.select(value)
    Instead, I'm using dropdown.sendkeys(value) in FF especially
    Can u suggest any solution for this
    Thanks!

    ReplyDelete
  5. Hello Mukesh,

    Your blog and YouTube channel on selenium are very helpful to me,I getting issues while working on dynamic Web page's, I often got stale element reference exception. Could u please help me to handle it.

    Thanks

    ReplyDelete
  6. Selenium WebDriver fits in the same role as RC did, and has incorporated the original 1.x bindings. It refers to both the language bindings and the implementations of the individual browser controlling code. This is commonly referred to as just "WebDriver" or sometimes as Selenium 2.
    Selenium Training Institute in Chennai

    ReplyDelete
  7. Amazing, thanks a lot my friend, I was also siting like a your banner image when I was thrown into Selenium.
    When I started learning then I understood it has got really cool stuff.
    I can vouch webdriver has proved the best feature in Selenium framework.
    thanks a lot for taking a time to share a wonderful article.

    Best Selenium Training Institute in Chennai
    Selenium Training Course

    ReplyDelete
  8. Hi Mukesh, how to check multiple hidden html5 checkbox's in selenium. I have tried Xpath, name but unable check multiple checkbox's. Thanks

    ReplyDelete
  9. Hi mukesh,
    could you please make a video for handling drop downs wich are having 'span' class as a tagname.

    ReplyDelete
  10. Thanks for Sharing this blog, it is very helpful to us. A good information to learners and each and every topic is easy to understand ...... Selenium Online Training

    ReplyDelete
  11. Awesome post.
    I read your blog everything is helpful and effective.
    Thanks for sharing with us.
    Java Training in Chennai

    ReplyDelete
  12. package NotClickableElement;

    import java.util.List;

    import org.openqa.selenium.By;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.WebElement;
    import org.openqa.selenium.firefox.FirefoxDriver;
    import org.testng.annotations.Test;

    public class HiddenElement {
    WebDriver driver=new FirefoxDriver();
    @Test
    public void hiddenElementTest(){
    driver.get("http://seleniumpractise.blogspot.in/2016/08/how-to-automate-radio-button-in.html");
    driver.manage().window().maximize();
    List radio=driver.findElements(By.id("male"));
    System.out.println("total buttons are = " + radio.size());
    for(int i=0; i0){
    radio.get(i).click();
    break;
    }
    }

    driver.quit();
    }
    }

    why this code is working with x=0 also?
    why x!=0 is taken?

    ReplyDelete
  13. public void hiddenElementTest(){
    driver.get("http://seleniumpractise.blogspot.in/2016/08/how-to-automate-radio-button-in.html");
    driver.manage().window().maximize();
    List radio=driver.findElements(By.id("male"));
    System.out.println("total buttons are = " + radio.size());
    for(int i=0; i0){
    radio.get(i).click();
    break;
    }
    }

    Why this code is working with x>0 ? sorry and not with(x=0)
    i tried with x>0

    ReplyDelete
  14. Nice tutorial iam reading your article really it is very helpful for providing a lot of information about Selenium …. Thank you Please keep share some more…………

    ReplyDelete
  15. Hie Mukesh , this Xpath is not working
    //input[@type='radio' and name='lang'] for me.. Can anyone help me out.

    ReplyDelete
  16. DIAC - We are Training industries in the field of industrial automation, industrial maintenance and industrial energy conservation. This opportunity for Fresher/Experienced ENGINEERS in terms of CORE Training And Placements. Call 9310096831.

    ReplyDelete

  17. Very Useful information Thank you!!
    TWB_ pioneered the offshore creation of technology content which was hitherto created by companies either internally or with

    ‘consultants’ hired by companies from vendors. TWB_ changed that by creating domain depth that mirrored the customer’s own

    technology capability with deep SME teams for a variety of industries including Information Technology, Defence& Aerospace,

    Engineering, Life Sciences. TWB_ Creates, Automates, Repurposes and Publishes

    Content.

    ReplyDelete
  18. Hi,
    It was very useful for me. Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to come here! Thanks for sharing the information with us.

    radio gospel

    ReplyDelete
  19. Excellent website. Lots of useful information here, thanks in your effort! . For more information please visit selenium Online course Hyderabad

    ReplyDelete
  20. Linux Online training in India – Webtrackker Technology is providing the linux online training with 100% placement support. If you are looking for the BEST LINUX & UNIX Training Institute In india or linux online training from india, live project based LINUX & UNIX online training then you can contact to us.

    Python online training in India, RPA Online training in India, Salesforce online training in india, AWS online training in india, Cloud Computing Online Training in India, SAS Online Training in india, Hadoop online training in INDIA, Oracle DBA online training in India, SAP online Training In india, Linux Online training in India








    ReplyDelete
  21. Thanks to share.Selenium is one of the leading and demanding automation testing tool where the process of software testing will be done using automation scripts.
    selenium training in Bangalore

    ReplyDelete
  22. This is one awesome blog article. Much thanks again selenium Online course Hyderabad

    ReplyDelete
  23. I really enjoy the blog.Much thanks again. Really Great. selenium Online course Hyderabad

    ReplyDelete
  24. I really enjoy the blog.Much thanks again. Really Great. selenium Online Training Hyderabad

    ReplyDelete
  25. Rated Best PLC, SCADA, DCS, HMI, Motors, AutoCAD Industrial Automation training company in Noida, Delhi NCR & offers hands on experience with placement support. We are conduct this course in Regular Training, weak end training, Short term training, Six Months training, Summer/winter training & Customized training for Incampus/colleges. Get details on +91- 9310096831.

    ReplyDelete
  26. That is very interesting I love reading and I am always searching for informative information like this.

    RPA Training in Hyderabad

    ReplyDelete
  27. Hey Friends....
    DIAC offering 2 months industrial training with placement and also gives participation certificate. Actually it’s automation, how machine works automatically in industries and it’s about ME, ECE, EEE, EE, IC.
    Interested students call at 91-9310096830/31 and register yourself for training.

    ReplyDelete
  28. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    sap gold partners in north america

    ReplyDelete
  29. Awesome, very nice blog. I like it. thanks for sharing valuable information about software testing it really helpful post.

    Selenium Coaching in Bangalore

    ReplyDelete
  30. I have read your blog its very attractive and impressive. I like your blog selenium Online Course

    ReplyDelete
  31. Really very informative and creative contents. This concept is a good way to enhance the knowledge of Autocad.thanks for

    sharing please keep it up
    Software Testing Training in Gurgaon

    ReplyDelete
  32. Best PLC Training in Noida, Delhi NCR: DIAC offers best plc training in Delhi NCR @ affordable course fees. 100% Job Assistance. Call today @9310096831

    ReplyDelete
  33. This is one awesome blog article. Much thanks again selenium Online Course

    ReplyDelete
  34. Excellent Sharing. You have done a great job. I gathered lots of new information... Selenium Training in Chennai | Selenium Training institutes in Chennai

    ReplyDelete
  35. Worth reading. Post gains everyone’s attention. Keep writing.nata coaching centres in chennai

    ReplyDelete
  36. This information you provided in the blog that is really unique I love it!! Thanks for sharing such a great blog. Keep posting..
    Summer training in Noida

    ReplyDelete
  37. This concept is a good way to enhance the knowledge.thanks for sharing. please keep it up selenium Online Training

    ReplyDelete
  38. HMI Training in Noida has been designed as per latest industry trends and keeping in mind the advanced HMI course content and syllabus based on the professional requirement of the student; helping them to get placement in Core companies and achieve their career goals. At DIAC HMI training is conducted during day time classes, weekend classes, evening batch classes and fast track training classes. Call immediate 9310096831.

    ReplyDelete
  39. HMI Training in Noida has been designed as per latest industry trends and keeping in mind the advanced HMI course content and syllabus based on the professional requirement of the student; helping them to get placement in Core companies and achieve their career goals. At DIAC HMI training is conducted during day time classes, weekend classes, evening batch classes and fast track training classes. Call immediate 9310096831.

    ReplyDelete
  40. Thanks a lot for posting this post, Your post has always been an informative source for me.
    Raw Edge Belt Manufacturers

    ReplyDelete
  41. Web Expert India are a popular and reputed website design and development company in India.Our Delhi based young professionals are highly dedicated and concentrate on availing quality services to our precious clients. We have a good clientage from all over India.
    VIEW MORE Web Designing Company in india, Delhi
    Thankyou..

    ReplyDelete
  42. This concept is a good way to enhance the knowledge.thanks for sharing. please keep it up selenium Online Training Hyderabad

    ReplyDelete
  43. Best Automation PLC SCADA Courses Training Institute | Industrial Training | Robotics Training 91-9818293887
    DIAC Providing job oriented training global certification with 100% placements. DIAC Authorized training center for PLC automation corporate Training, Machine, Industrial Automation, Building Management System, SCADA, DCS, HMI, VFD, Control Panels, Robotics Training. Call @91-9953489987.

    ReplyDelete
  44. We provided all PLC training in Noida with some more industrial training programms at affordable price with quality course by professionals. After training, we will give you PLC training certificate. Call @9953489987.

    ReplyDelete
  45. Summer Training in PLC SCADA is a modular 4/6 weeks course, regularized over 5 days a week, 2 hrs a day, and exclusively includes practical sessions with affordable course fee, placement solution and provide 1 year membership card or certicate to the participants. Call @9953489987/9310096831.

    ReplyDelete
  46. I am really happy with your blog because your article is very unique and powerful for new reader.
    Selenium Training in Chennai

    ReplyDelete
  47. I have read your blog its very attractive and impressive. I like your blog. selenium Online Training

    ReplyDelete
  48. I am really happy with your blog because your article is very unique and powerful for new reader.
    Selenium Training in Chennai | Selenium Training in Bangalore | Selenium Training in Pune

    ReplyDelete
  49. Automation Training in Noida | Industrial Automation Training in Delhi- 9818293887
    Certified Placement Oriented Course in Industrial Automation Like PLC, Scada, HMI, DCS, Process Instrumentation, Panel Designing, Drives and Servo Motors etc. Make yourself Industry ready with “Dynamic Institute of Automation & Controls” and boost up your Career. Call @9953489987.

    ReplyDelete
  50. My spouse and I love your blog and find almost all of your post’s to be just what I’m looking for. Can you offer guest writers to write content for you? I wouldn’t mind producing a post or elaborating on some the subjects you write concerning here. Again, awesome weblog!
    Big data training in Velachery
    Big data training in Marathahalli
    Big data training in btm
    Big data training in Rajajinagar
    Big data training in bangalore

    ReplyDelete
  51. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..

    rpa Training in Chennai

    rpa Training in bangalore

    rpa Training in pune

    blueprism Training in Chennai

    blueprism Training in bangalore

    blueprism Training in pune

    rpa online training

    ReplyDelete
  52. Good blog and I never get bored while reading your article
    because, they are becomes a more and more interesting from the starting lines until the end.
    Selenium online training in Hyderabad

    ReplyDelete

  53. Nice blog..! I really loved reading through this article. Thanks for sharing such a amazing post with us and keep blogging...


    Best Data Science online training in Hyderabad

    Data Science training in Hyderabad

    Data Science online training in Hyderabad

    ReplyDelete
  54. Good Post, I am a big believer in posting comments on sites to let the blog writers know that they ve added something advantageous to the world wide web.
    java training in marathahalli | java training in btm layout

    java training in jayanagar | java training in electronic city

    java training in chennai | java training in USA

    selenium training in chennai

    ReplyDelete
  55. By using below code why I am not getting output as"
    Check boxes name are=====>>>>>Singing
    Check boxes name are=====>>>>>Coding
    It is printing as:
    Check boxes name are=====>>>>>
    Check boxes name are=====>>>>>


    ListchkBoxes=driver.findElements(By.xpath("//input[@name='lang' and @type='checkbox']"));
    for(int j=0; j>>>>"+chkBoxValues);
    if(chkBoxName.equalsIgnoreCase("code")) {
    chkBox.click();
    }
    }

    ReplyDelete
  56. All the points you described so beautiful. Every time i read your i blog and i am so surprised that how you can write so well.
    python training in Bangalore
    python training in pune
    python online training
    python training in chennai

    ReplyDelete
  57. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    Devops training in velachery
    Devops training in annanagar
    Devops training in sholinganallur
    Devops training in tambaram

    ReplyDelete
  58. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    Blueprism training in Bangalore

    Blueprism training in Pune

    Blueprism training in Chennai

    ReplyDelete
  59. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 

    angularjs Training

    in chennai

    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    ReplyDelete
  60. I would like to appreciate your work for good accuracy and got informative knowledge from here... Java Training in Chennai | Python Training in Chennai

    ReplyDelete
  61. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.

    AWS Interview Questions And Answers

    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    AWS Training in Pune | Best Amazon Web Services Training in Pune

    Amazon Web Services Training in Pune | Best AWS Training in Pune

    AWS Online Training | Online AWS Certification Course - Gangboard

    ReplyDelete