Commit 2196565b authored by Ru Cindrea's avatar Ru Cindrea

Merge branch 'new_way_to_find_objects' into 'master'

New way to search for objects in scene

See merge request !59
parents 056e8e87 4160118e
......@@ -561,7 +561,20 @@ public class TestForScene1TestSample
AltUnityObject capsuleInfo=altUnityDriver.FindElement("CapsuleInfo");
Assert.AreEqual("6",capsuleInfo.GetText());
}
[Test]
public void TestFindParent()
{
var altElement = altUnityDriver.FindElement("UIButton/..");
Assert.AreEqual("Canvas", altElement.name);
}
[Test]
public void TestFindId()
{
var altElement = altUnityDriver.FindElement("UIButton");
var altElement2 = altUnityDriver.FindElement("id(" + altElement.id + ")");
Assert.AreEqual("UIButton", altElement.name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment