I am new to selenium automation and while learning radio button handling in selenium, I tried to automate language setting in amazon.in page. I am unable to select the radio button listed in the page. site: https://www.amazon.in/customer-preferences/edit?ie=UTF8&preferencesReturnUrl=%2F&ref_=topnav_lang code used: driver.findElement(By.xpath(“//input[@value = ‘ta_IN’]”)).click(); (I tried to select the language tamil- TA (3rd radio button)). Can anyone guide me in this? Answer
Tag: radio-button
How can I change the drawable color of RadioButton’s background programmatically?
My radio buttons have background which is selector drawable. And I want to change the color of state_checked=”true” item’s drawable programmatically. The background of radiobutton : checkbox_membertag_active : and I tried in this way. I want to change the @color/white of active item to starColor which I pre-declared. But it’s still white color. Answer Try with ColorStatList like the Code
How can I change the text color and the tint color of radiobuttons in a Alert?
Right now I have a button and when clicked it pops up with an AlertDialog with 3 radiobuttons. I want to change the text color and the tint color to match what I have on the rest of the app. Besides the call to the method this is all the code I have for the Alert: I have tried to
How to get s:radio with label content as empty
I am using the struts tag s:radio as below; That is generating the HTML output as below; However I don’t want the label content like Yes or No. I am loading an image instead of that. How can I make that label content as blank or null? Answer Use a map to populate a radio tag. The value of the
Struts2 Tags Radio button
I have this iterator that loops through an object. where answer is a boolean value, that I am trying to set through radio buttons. but the problem is, upon on the generated html, teh radio buttons. is like this It did not have the indice/index. it only gave me the %{#key.index} Answer you have to use property tag to get
Java Radio Button Variable Errors
So this works now, and i fixed the variable calling errors. but I get : My GUI Pops up but is blank, what is it now? I cannot figure out what the problem is at this time. This is very important to get resolved, thank you in advance. Answer the first error means when you call buildPanel(String, String) you need
Regarding the checked state of a Radio button
I currently have a layout where if the user presses the option 1 button a new layout is set where the radio button to its right is checked. Then the “Checker” button gets a new onClick value. How can I change this within the java code so that the option1clicked method sets the first radio buttons checked value to “true”.
Radio Button value retrieval using servlets
I’m quite new to the process of web development, so I apoligise if this seems a really silly question. Basically, I’m creating a servlet whereby a user will answer ‘yes’ or ‘no’ to three 3 questions, and then submit the form. What I wish to do is to retrieve the value of each button, and store it a data structure