I am trying to check checkbox using selenium IDE using click or check both. It is not checking at all check box. Can any one help me ?
html code for check box is:
<input id="iAgree" type="checkbox" name="iAgree" checked="checked">
I have used below IDE code:
check id=iAgree
check id=iAgree
or click id=iAgree
Please let me know where i am wrong?
Use Below code
clickAt | id=iAgree
Let me know its working or not.
click | xpath=(//input[#type='checkbox']) |
I can do this with this code:
<tr>
<td>clickAt</td>
<td>Xpath of the checkbox</td>
<td></td>
</tr>
I hope this will help. :)
Related
<#a href="javascript:.ListSubfunds.edit_subfund('JSIT0', 'C123');"><#span class="icon icon-edit"><#/span><#/a>
<#a href="javascript:.ListSubfunds.edit_subfund('JSIT1', 'C345');"><#span class="icon icon-edit"><#/span><#/a>
<#a href="javascript:.ListSubfunds.edit_subfund('JSIT2', 'C659');"><#span class="icon icon-edit"><#/span><#/a>
I need to click the correct <#span class="icon icon-edit"><#/span> based on text "JSIT1" within the <#a> tag ("href"). I'm trying to do this using selenium IDE firefox.
I'm brand new to selenium and not sure if this will work. The reason for this task is:
I am doing a manual job of updating data on a website so I'm trying to automate this process.
It doesn't look like an optimal way of selecting the element, but since you didn't provide any more of the HTML, the best I can do is the following XPath for you to try:
//a[contains(#href,'JSIT1')]
I was trying to do that by adding an attribute of uib-tooltip to Datepicker, but after I saw the code I've seen that it isn't the proper way to do that...
Anyone have an idea for doing that?
Thanks a lot!!
I've never done so myself but I think you could just override the default datepicker templates and just add a tooltip there
they can be found here.
then you can go to the day view template and add a tooltip next to ng-repeat="dt in row"
<td ng-repeat="dt in row" uib-tooltip="hello tooltip"class="uib-day text-center" role="gridcell"
id="{{::dt.uid}}"
ng-class="::dt.customClass">
<!--<button type="button" class="btn btn-default btn-sm"
uib-is-class="
'btn-info' for selectedDt,
'active' for activeDt
on dt"
ng-click="select(dt.date)"
ng-disabled="::dt.disabled"
tabindex="-1"><span ng-class="::{'text-muted': dt.secondary, 'text-info': dt.current}">{{::dt.label}}</span></button>-->
</td>
If you are using the minified version of ui-bootstrap you're going to have to manipulate some of the component's source and minify it yourself
You can not click a button unless you edit at least one field, and button will be disabled. once you edit any field the button 'reset' will be enabled to click.
You can solve this in a number of ways.
Probably one of the more useful ways (If you are using this fact more than once), is to save the "status" of the button to a variable.
Below are two separate examples of how you could code this.
The first example will take a variable called isSelected, and assign it either a value of "block" or "none" dependent on how the selector is displaying.
The second example will look at the radio button and see whether it is present in the "On" state or not.
This first one uses the jQuery addon
<tr>
<td>storeEval</td>
<td>jQuery('div.search-date-container div.modal').css('display')</td>
<td>isSelected</td>
</tr>
<tr>
<td>gotoIf</td>
<td>storedVars['isSelected']=='block'</td>
<td>skipToDatepicker</td>
</tr>
This second one doesn't
<tr>
<td>storeElementPresent</td>
<td>id=edw_paynow</td>
<td>edwPresent</td>
</tr>
<tr>
<td>echo</td>
<td>${edwPresent}</td>
<td></td>
</tr>
<tr>
<td>gotoIf</td>
<td>${edwPresent}==false</td>
<td>skipEDW</td>
</tr>
You may need to adapt the code slightly - but I don't know what buttons you are using. If you provide a bit more info and an upvote I'm sure I could try figure it out :)
I have a web page and a gird on it.
I want to click on a cell of my grid in Selenium IDE.
but this code doesn't work.
selenium.click("//tr[#id='row8']/td[2]");
Thank you so much
Try This.
<tr>
<td>clickAndWait</td>
<td>id=cellid </td>
<td></td>
</tr>
in the target locator field give either id ,name,css or xpath
I'm using the Bootstrap-wysihtml5 jquery plugin (https://github.com/jhollingworth/bootstrap-wysihtml5/) to convert textareas to WYSIWYG. I would like to be able to activate and deactivate the editor by clicking on 2 buttons, so far i can show the editor, please will you let me know how i can deactivate the editor and leave just the textarea and its value. My code is as follows:-
HTML
<textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
<input type="button" id="button1" value="Show Editor">
<input type="button" id="button2" value="Hide Editor">
Script
$("#button1").click(function(){
$('textarea').wysihtml5();
});
$("#button2").click(function(){
// this is where i'm stuck
});
Thank you
A few lines of custom JS code. I think they can help you.
var content = $('#content');
var contentPar = content.parent()
contentPar.find('.wysihtml5-toolbar').remove()
contentPar.find('iframe').remove()
contentPar.find('input[name*="wysihtml5"]').remove()
content.show()
I had the same problem trying to disable/hide the toolbar and editor and had luck with the following commands (to disable the editor). I'm using version wysihtml5-0.3.0_rc2.js)
$('#editorId').data('wysihtml5').editor.composer.disable();
$('#editorId').data('wysihtml5').editor.composer.enable();
or (to hide the editor)
$('#editorId').data('wysihtml5').editor.composer.hide();
$('#editorId').data('wysihtml5').editor.composer.show();
To do the same to the toolbar you do the following to hide/show (can't find a wat to disable the toolbar):
$('#editorId').data('wysihtml5').editor.toolbar.hide();
$('#editorId').data('wysihtml5').editor.toolbar.show();