Hi all
Even if the iOS EndPoint show up as 'Connected' in the 'EndPoint View' it's not possible to list them (via Host.AvailableHosts).
I am searching for the possibility to switch the current host to one of my iOS endpoints before executing some recordings for an iOS-App. After that I need to switch back to a WebDriver "do something" in Chrome on a real Machine and last I need to execute some CLI tools on the local machine.
So how can I execute some tests on iOS EndPoint and some on WebDriver (and even some on "local Browser") within only ONE test run?
Kind Regards, sam1974
iOS EndPoint not listed in Host.AvailableHosts
Re: iOS EndPoint not listed in Host.AvailableHosts
Hi Sam,
When I execute this code, every endpoint is in the list. Doesn't matter if it is connected or not. Therefore, may I ask you to post the code which you used to do so?
I used the following lines to get all available hosts and log them to the report.
The snippet below changes the current host.
Hope this helps.
Regards,
asdf
When I execute this code, every endpoint is in the list. Doesn't matter if it is connected or not. Therefore, may I ask you to post the code which you used to do so?
I used the following lines to get all available hosts and log them to the report.
Code: Select all
IEnumerable<string> hosts = Host.AvailableHosts;
foreach (var element in hosts) {
Report.Info(element);
}
Code: Select all
Host.MakeCurrentHost("YourDevice");
Regards,
asdf
Re: iOS EndPoint not listed in Host.AvailableHosts
It works now. Thanks! Please excuse my very late answer.