Questions tagged [child-objects]
15 questions
3
votes
2 answers
Object not serializing all properties to XML
I have a class that takes standard address properties and stores them. The State property is of type USStateCodesType. Here's a sample of the code used to store the properties:
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml",…

SpaceCowboy74
- 1,367
- 1
- 23
- 46
2
votes
3 answers
Trying to get an object to identify its parent object without passing the parent into the child's instance
I'm having troubles finding detailed information on this issue.
I would like to instantiate Bar() within Foo() without having to pass a pointer to Foo(). Or some way for Bar() to know it's a child of Foo(). Is this possible? Or am I already using a…

Duncan
- 1,530
- 15
- 20
2
votes
3 answers
How do I access a string of a child object on aspx page?
I'm trying to work with a class that has a child object, which has a string - and I'm trying to access this with in-line C# code on my aspx page.
More specifically, let's say I'm working with an object of 'Upload' class which has a Title property…

SkonJeet
- 4,827
- 4
- 23
- 32
1
vote
2 answers
Child object 'str' object is not callable, unable to rectify from other similar posts
I am attempting to create a child object from random variables within a list. I have included all code that I have tried. Googling the errors brings up many posts and solutions, none of which seem to be exactly parallel enough for me to utilize.…

misfit138
- 61
- 7
1
vote
2 answers
Delete child objects
I am trying to update a resource as follows:
public void Update(Resource resource) {
Resource _resource = _resourceRepository.First(r => r.Id == resource.Id);
_resource.Content = resource.Content;
_resource.Description =…

Miguel Moura
- 36,732
- 85
- 259
- 481
1
vote
1 answer
Unity 3D - Object position and its size
I have following problem with my Unity3D project. I will try to describe it on images.
So I want to merge to objects into 1. When object 1 and 2 collide, then they merge (object 2 became child of object 1). In practice I made it when bolt in…

Celdur
- 125
- 2
- 13
1
vote
1 answer
UFT/QTP: Count child objects in Java Internal Frame
I need to compare a string with all values of my text fields that are inside in a Java Internal Frame.
I already tried to use this code:
Dim getElement
Set getElement = Description.Create
getElement("class description").value = "text box"
'I tried…

M. Coutinho
- 305
- 1
- 8
- 29
1
vote
4 answers
Double number of items returned by Desktop.ChildObjects
I am trying to get all the open Browser objects using QTP11.
The code I use is the following:
Set descBrowser = Description.Create
descBrowser("micClass").Value = "Browser"
Set objChildren = Desktop.ChildObjects( descBrowser )
During testing, i…

Mimi
- 23
- 4
0
votes
0 answers
how can i get first text[1] inside a complex DIV using UFT?
this is the xpath of global DIV:
/html/body/div/div/div[1]/div
Pic of that DIV:
enter image description here
his html :
How to log in:
E-Mail:…
Arwa Hm
- 3
- 2
0
votes
1 answer
How to access wheel collider in a child object in Unity
In Unity, my player gameObject has 4 wheels and all of them contain wheel colliders. I want to get the rpm of these.
I write this code, but at line 33 it is throwing index/argument out of bound exception, which means the index it's trying to access…

Samin Sadman Shad
- 53
- 10
0
votes
1 answer
Unity 3d Rigidbody moving but not child object
I have made a car scene in Unity. I have one Rigidbody (car) and its childgameobject. I made a script to move that childgameobject with sliders while Rigidbody is moving. The childgameobject moves fine with the slider but when my Rigidbody moves,…

Awais Ahmed
- 25
- 8
0
votes
1 answer
How to retrieve Child objects using ParentId in quickblox iOS
i wanted to retrieve all child objects using Parentid from QuickBlox API.How can i do that.Can anyone suggest the proper way of doing that in ios platform.

Ajay Babu Singineedi
- 185
- 1
- 1
- 13
0
votes
2 answers
General run error --2147467259 while using childobjects in QTP
I am trying to print the name of all the links present on a page. I have written the below code-->
SystemUtil.Run "Chrome.exe","www.timesofindia.com"
Dim obj, objects,objectnames,i
Set obj = Description.Create
obj("micclass").value = "Link"
objects…

Irshad
- 1
- 1
- 3
0
votes
0 answers
QTP - VBScript to find a value/innertext of childobjects
I'm trying to use childobjects method in QTP for WebTable where I have 38 cells with some values.
I'm able to get the number of childobjects i.e., count, but couldn't make use of it. Yes, actually what i'm trying to do is to find and select(ON)…

zeal
- 475
- 4
- 11
- 25
0
votes
1 answer
How do I find objects from child class by attribute in Python
Let's say I have the following classes defined to construct a building made of rectangles which are made from points. How do I query all the rectangles by attribute from inside a Building class? I think I'm supposed to use a super method here but…

JasonArg123
- 188
- 1
- 1
- 14