Contributions
Radio button captions do not display
EDIT: This is clearly a bug of some sort. Whenever I touch the form in the editor (for example, by adding a button or a text box), all of the radio button captions disappear. Similarly, when I display the form, the radio button captions are gone (as shown below in the screen snapshot). I will open a support case... I'm trying to use a UserForm (for the first time), and something is broken. My form looks like this. As you can see, I've set Caption properties for all of the radio buttons. My script code looks like this: function Test1() { // Get the website to test var userForm = UserForms.StartupForm; var formResult = userForm.ShowModal(); var loginUrl; switch (userForm.radioGroup.ItemIndex) { case 0: loginUrl = "http://localhost:22387"; break; case 1: loginUrl = "https://my.indigo.health/login"; break; case 2: loginUrl = userForm.txtOther.Text; break; default: Log.Error("No base URL selected."); } // Open the website Browsers.Item(btChrome).Run(loginUrl); } But when I run the code, the form captions are all blank: Any idea what I may be missing?Solved1.3KViews0likes1CommentRe: How to access UserForm radio button Caption
Many thanks to Evgeny in tech support for this solution: // In this example, a form named MyForm contains a radio button group // named radioGroup. // Display a modal form var frm = UserForms.MyForm; var modalResult = frm.ShowModal(); // Get the selected radio button var idx = frm.radioGroup.ItemIndex; var rb = frm.radioGroup.ChildControl(idx); // Access properties on the radio button control var selectedCaption = rb.Caption; Note that code completion doesn't display any properties or methods for the radio button object.1.6KViews1like0CommentsHow to get the HTML for the current page
In JScript, how do I retrieve the entire HTML (as a text string) of the current page? I assume it's some property or method off of page.contentDocument, but I can't find anything that seems to give me the entire document. I want to include the HTML of my page in the body of a REST API call to a service that validates the HTML.Solved1.6KViews0likes1CommentRe: How to add radio buttons to a UserForm?
The Items.Add() method returns the new radio button, so: var frm = UserForms.MyForm; var rb = frm.radioGroup.Properties.Items.Add(); rb.Caption = "My caption"; Note that code completion does not display most of the available properties and methods. For reference, the manual page for the TcxRadioGroupItem object is here.1.6KViews1like0CommentsHow to add radio buttons to a UserForm?
Can someone please post an example that shows how to add a radio button to a UserForm? I have a UserForm that contains a TcxRadioGroup whose Name property is radioGroup. If I want to add a radio button to that radio group, I assume I need something like this: var userForm = UserForms.MyForm; userForm.RadioGroup.Properties.Items.Add( something ); but I can find no documentation or examples of the mysterious "something" in the above example. The only relevant documentation (such as it is) is here.Solved1.7KViews0likes2CommentsHow to access UserForm radio button Caption
I have a UserForm that I display from JavaScript var userForm = UserForms.StartupForm; var formResult = userForm.ShowModal(); The UserForm contains a RadioGroup with several radio buttons on it. How do I fetch the Caption property of the selected radio button?Solved1.7KViews0likes2CommentsTell TestComplete not to deal with source control
When I was initially setting up TestComplete, I was poking around in the settings and ran across the Source Control settings. As I recall,the initial setting was something to the effect of "not using source control". I decided to see what would happen if I told it that I was using Git, andI am sorry I did. (I don't want to go into the reasons right now.) Anyway, is there a way to cause TestComplete to forget about my source control system and just keep its hands out of source control altogether?Solved1.2KViews1like1CommentRe: How do I wait for a user to perform an action?
I know that, in general, boards like this frown on "thank you" posts. But I really want to thank everyone who took the time to help me. I'm a new user of this product, and I'm struggling mightily to learn the Zen of coding tests. Smart Bear, you could really help us by making it easier to discover script or Keyword operations that do useful things directly from within the IDE. For example, if I record a Keyword test, I see things like: textnode Click ... Clicks at point (1,2) of the 'textnode' object. Nothing I see on the screen gives me a clue that this statement is actually an instance of an On-Screen Action. And the docs don't offer much help either. Often as not the docs display something like the text above as the "answer", but fail to state which "operation" the user can drag into the sequence to get to that answer. Simply adding the ability to see the "operation" associated with a line in the Keyword Test would solve this particular pain point. As for improving the "discoverability" of script objects and their usage, asking the experts in this board is probably about the best you can do. Searching the docs is almost impossible; I get many pages of results, most of which are not relevant to my query. Microsoft ditched their own boards in favor of StackOverflow several years ago, and now it's pretty easy to use Google to find good answers there. Maybe paying more attention to making the content of your user community posts friendly to Google searches would help. Or following Microsoft's lead and moving the whole kit and caboodle to StackOverflow...3.7KViews0likes0Comments