public void TestRightClickContextMenu_Copy_PasteUsingRepo() { TextBoxOne.Text = "right click copy"; var textBox2 = new TextBoxControl(); textBox2.SystemUnderTestFromRepo("text box2"); textBox2.Text = "box2"; TextBoxOne.Wait(2); TextBoxOne.ContextMenuClick("Select All"); TextBoxOne.ContextMenuClick("Copy"); textBox2.ContextMenuClick("Select All"); textBox2.ContextMenuClick("Paste"); Assert.AreEqual(TextBoxOne.Text, textBox2.Text); }
public void TestRightClickContextMenu_Copy_Paste() { TextBoxOne.Text = "right click copy"; var textBox2 = new TextBoxControl(); textBox2.SystemUnderTest(new ControlLocatorDef <FindControl>( () => new FindWindow("Demo Form"), () => new FindByAutomationId("textBox2") )); textBox2.Text = "box2"; TextBoxOne.Wait(3); TextBoxOne.ContextMenuClick("Select All"); TextBoxOne.ContextMenuClick("Copy"); textBox2.ContextMenuClick("Select All"); textBox2.ContextMenuClick("Paste"); Assert.AreEqual(TextBoxOne.Text, textBox2.Text); }