I'm Working on Ruby on rail 3.1 with Netzke 0.7.4 and Cucumber.
I use Cucumber with Netzke it work great but I have found some problem on choose radio step.
I use this step.
When /^(?:|I )choose "([^"]*)"$/ do |field|
choose(field)
end
It show this error message.
And choose 'Yes' for GST field
cannot choose field, no radio button with id, name, or label 'Yes' found (Capybara::ElementNotFound)
(eval):2:in `choose'
It's look like choose(locator) method can't find any radio button on my page.
That very strange because it have only 2 radio on page.
Question is how can I do with this radio?
Thanks.
Finally I have found answer I search check box instead of combo box and it work.
Is ExtJs 4 transform check box to radio?
Related
I have a custom WPBakery page builder element that uses a checkbox and some text boxes for input. I would like to setup my vc_map dependancies so that when the box IS NOT checked the two text fields below it are show and when the checkbox IS checked they are hidden.
Everything I have seen online and in the docs seem to indicate a dependency with a check box can only show something when it is checked. Is it possible to reverse this behavior as I described above without a custom jQuery solution? ( that is what I am doing now, but want to avoid the extra JS )
I have created a form using Kentico on-line form and applied the built-in "required" validation on it. Whenever a textbox is empty then a required validation is shown. Now, I have entered a value in the textbox and press tab from the keyboard but the required message does not disappear. I want to remove or hide the message from the form when the user enters a value in the text box before the submit button is clicked.
How to resolve this issue?
I don't recall this being something that Kentico handles out-of-the-box. You'll most likely need to add some custom client-side script for this. Typically - where I work, at Ridgeway - we use custom layouts for forms, as the standard layout is fairly table-rich.
I am working in Kentico 8.2, and I want the user to have to accept all of the terms and conditions. For this, I am using a check box. If that check box is unchecked then user will not be able to submit the form.
This is not achievable through Kentico help which says that I can achieve it by making the check box multiple choice. I have done this and it works but I want the check box's own validation to work.
I cannot attach a picture here otherwise I would show you guys what I have done so far.
If anyone has a solution then please help.
Do you use the basic Kentico forms module?
You can use Validation on a field.
in the Forms module:
new field "conditions"
check "Required"
default value unchecked
Validation "Add validation rule"
select General condition
Enter text > press edit and in the code tab add the following macro:
{%conditions.Value == 1%}
add an error message
dont forget to press Apply and save the field
This worked in my sample.
I am using an advanced comboBox like this one : http://www.sencha.com/examples/#ExamplePlace:advancedcombobox.
I would like to change the label displayed at the bottom of the result list : Displaying 1 - 10 of 274.
How is it possible? I saw that PagingToolBar exposes its Messages via getters/setters but I don't know how to get it from the ComboBox.
Any idea?
I finally found it :
ComboBox.getCell().getPagingToolBar()
I am creating a program in which i want to display dialog box(which shows yes/no command) when button clicked, after dialog box has been shown, when clicking yes button it moves to another form, can you help me to achieve this task? please let me know as soon as possible.
Checkout the LWUIT repository here... In this repository contains LWUIT sample applications. See the sample code. and do like this..
Dialog.show("Sample", "Put ur information", "Ok", "Cancel");
Have a look at the Alert class (link text, the Form class, and the Display method to show stuff. That's pretty basic stuff and you'll find tons of examples / tutorials out there.
ps: Pure MIDP no LWUIT involved.