Selenium IDE - Inserting New Command - selenium-ide

In Selenium IDE, while inserting New Command, do I have specify details for CSS and XPath for every link or button I select?
Please help me understand how I can insert commands manually in Selenium IDE using FireBug.

Short Answer:
No.
Long Answer:
No, you don't need to "just" specify a CSS or Xpath selector. You have other options like
Identifier
ID
Name
Link text

Related

Protractor text test with link

I was wondering how I would be able to test for text using Protractor when part of my text contains a link to a separate page.
Is there a way to expand the link and get the raw text to expect that?
Should I use something similar to:
expect(myText).toContain("Some text <a href="..."")
Thanks
If the text is a link, you can use following locator for the same
expect(element(by.linkText('Google')).getTagName()).toBe('a');
This is in case when link is like this in DOM
Google
Source: Software Automata - Protractor – Locators

Protractor - How to locate element by custom (non HTML) tags?

Recently I was using protractor to automate the Application developed using HTML 5 , angular 2 , java-script. I was able to automate it without any issues. But recently developers have changed the controls to DevExtreme HTML JS. After that the tags are changed (For example dx-text box , dx-tool-tip which are non HTML). So I am not able to automate now using protractor. I have tried all the possible combinations but it is not working.
So can anyone please help me out, whether protractor supports DevExtreme controls or is there is any alternative for that?
Below is the HTML for the new code :-
HTML code
Previously I was locating it with the id = inputUserName it was working fine but now it is throwing error. I have tried all the possible ways to locate it but no luck.
Can anyone please let me know whether anyone has used protractor before to automate the application that is using DevExtreme HTML JS controls ?
Technically it is still HTML. Your issue is the id you were using is no longer attached to the input element. You can now use element(by.css('#inputUserName input.dx-texteditor-input')); The xpath solution in the comment might work but if the password field also has the same class you will have multiple elements including the id from the parent element gives you some security.

Selenium IDE for Firefox not reading values from PHP report form

I have report forms in PhP and I need to read the elements on it, but the tool is not reading the values to validate it.
When I hit 'Find' button the tool is able to read the value, but when I run the whole test case, its not.
Please help.
Perhaps the page isn't fully loaded before you try to read the value?
Can you waitForElementPresent for that element?

twitter bootstrap autocomplete dropdown / combobox with Knockoutjs

I have a requirement where I HAVE TO use bootstrap autocomplete dropdown, BUT user can have free form text in that dropdown if they wish. Before you think about TypeAhead, I could use Bootstrap TypeAhead textbox, but I need to have the dropdown becasue we want to give some default values as headstart options in case users dont know what to search for.
I am using this with MVC DropDownListFor as that creates a select control for us.
I found this article which does that for me.
https://github.com/danielfarrell/bootstrap-combobox/pull/20
All I had to do was take off the name from the select control and the control was letting me enter free form text. All good so far.
Now, I am using this in conjunction with Knockoutjs. I bind my options and selected value to the select control and then on row rendered of my template, I called (selector).combobox() which makes the select control a bootstrap comobobox and adds an input control and hides the select control in the scenes behind.
The problem now is when I try to get he values to post to server, since the value I put in input box is not a valid options from the options I gave to select control, it is always setting it to the first option by default. This is becasue, I set the binding of the selected value on select control and not on the input box which was created by bootstrap-combobox.js.
My question is how do I get the input box to data-bind to the same porperty as the the select control was bound to.
Any other options??
Let me know if you need more clarification or have questions.
Please suggest.
Thanks.
Have a look at Select2 for Bootstrap. It should be able to do everything you need.
Another good option is Selectize.js. It feels a bit more native to Bootstrap.
Does the basic HTML5 datalist work? It's clean and you don't have to play around with the messy third party code. W3SCHOOL tutorial
The MDN Documentation is very eloquent and features examples.
Select2 for Bootstrap 3 native plugin
https://fk.github.io/select2-bootstrap-css/index.html
this plugin uses select2 jquery plugin
nuget
PM> Install-Package Select2-Bootstrap
Fuel UX combobox has all the features you would expect.
Can i suggest http://www.jqueryscript.net/form/Twitter-Like-Mentions-Auto-Suggesting-Plugin-with-jQuery-Bootstrap-Suggest.html, works more like the twitter post suggestion where it gives you a list of users or topics based on # or # tags,
view demo here: http://www.jqueryscript.net/demo/Twitter-Like-Mentions-Auto-Suggesting-Plugin-with-jQuery-Bootstrap-Suggest/
in this one you can easily change the # and # to anything you want
Bootstrap Tokenfield seems good too: http://sliptree.github.io/bootstrap-tokenfield/

Can we add more functions using javascript in Selenium IDE?

Hi I am newbie to selenium.
I came to know that goto_sel_ide.js file which was given in one forum which helps to add the functions like gotoIf, while, label etc.,
Can we create javascript for exit and for loop like wise?
Please suggest me how to do that?
you should see the SelBlocks extension, as it has breaks.