Skip to content

Commit 893d0e1

Browse files
committed
Revert "activate app with timeout"
This reverts commit 90fc594.
1 parent 90fc594 commit 893d0e1

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

src/Appium.Net/Appium/AppiumDriver.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,6 @@ public void RemoveApp(string appId) =>
139139

140140
public void ActivateApp(string appId) =>
141141
Execute(AppiumDriverCommand.ActivateApp, AppiumCommandExecutionHelper.PrepareArgument("appId", appId));
142-
143-
public void ActivateApp(string appId, TimeSpan timeout) =>
144-
Execute(AppiumDriverCommand.ActivateApp,
145-
AppiumCommandExecutionHelper.PrepareArguments(new string[] {"appId", "options"},
146-
new object[]
147-
{appId, new Dictionary<string, object>() {{"timeout", (long) timeout.TotalMilliseconds}}}));
148142

149143
public bool TerminateApp(string appId) =>
150144
Convert.ToBoolean(Execute(AppiumDriverCommand.TerminateApp,

test/integration/Android/Device/AppTests.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,7 @@ public void CanActivateAppTest()
4343
//Verify the expected app was activated
4444
Assert.DoesNotThrow(() => _driver.FindElement(MobileBy.Id(IntentAppElement)));
4545
}
46-
47-
[Test]
48-
public void CanActivateAppWithTimeoutTest()
49-
{
50-
//Activate an app to foreground
51-
Assert.DoesNotThrow(() => _driver.ActivateApp(IntentAppPackageName, TimeSpan.FromSeconds(20)));
5246

53-
//Verify the expected app was activated
54-
Assert.DoesNotThrow(() => _driver.FindElement(MobileBy.Id(IntentAppElement)));
55-
}
5647
[Test]
5748
public void CanActivateAppFromBackgroundTest()
5849
{

test/integration/IOS/Device/AppTests.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,6 @@ public void CanActivateAppTest()
4646
Assert.DoesNotThrow(() => _driver.FindElement(MobileBy.AccessibilityId(IosTestAppElement)));
4747
}
4848

49-
[Test]
50-
public void CanActivateAppWithTimeoutTest()
51-
{
52-
//Activate an app to foreground
53-
Assert.DoesNotThrow(() => _driver.ActivateApp(IosTestAppBundleId, TimeSpan.FromSeconds(20)));
54-
55-
//Verify the expected app was activated
56-
Assert.DoesNotThrow(() => _driver.FindElement(MobileBy.AccessibilityId(IosTestAppElement)));
57-
}
58-
5949
[Test]
6050
public void CanActivateViaScriptAppTest()
6151
{

0 commit comments

Comments
 (0)