Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsigned WDA uploaded #5

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Appium Wizard/Appium Wizard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@
<None Update="Resources\iOS\openssl.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Resources\iOS\unzip.exe">
<None Update="Resources\iOS\wda.ipa">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Resources\iOS\wda.ipa">
<None Update="Resources\iOS\unzip.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Resources\iOS\zip.exe">
Expand Down
Binary file modified Appium Wizard/Resources/iOS/wda.ipa
Binary file not shown.
10 changes: 5 additions & 5 deletions Appium Wizard/iOSMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ public string RunWebDriverAgent(CommonProgress commonProgress, string udid, int
// Clean up resources
//process.Close();
bool isPasscodeRequired = false;
int count = 6;
int count = 1;
string sessionId = string.Empty;
while (!process.HasExited)
{
Expand All @@ -877,18 +877,18 @@ public string RunWebDriverAgent(CommonProgress commonProgress, string udid, int
if (runwdaError.Contains("Process started successfully"))
{
sessionId = iOSMethods.GetInstance().IsWDARunning(port);
while (sessionId.Equals("nosession") && count <= 6 && count > 0)
while (sessionId.Equals("nosession") && count <= 6)
{
sessionId = iOSAPIMethods.CreateWDASession(port);
Thread.Sleep(5000);
sessionId = iOSAPIMethods.CreateWDASession(port);
if (sessionId.Equals("nosession") & iOSMethods.GetInstance().IsWDARunningInAppsList(udid))
{
int seconds = 5 * count;
commonProgress.UpdateStepLabel("Please enter Passcode on your iPhone to continue...Will timeout in " + seconds.ToString() + " seconds.");
commonProgress.UpdateStepLabel("Please enter Passcode on your iPhone to continue...Retrying in 5 seconds...\nRetry "+count+"/6.");
isPasscodeRequired = true;
Thread.Sleep(5000);
}
count--;
count++;
}
//if (runwdaError.Contains("Timed out while enabling automation mode"))
//{
Expand Down