Skip to content

Instantly share code, notes, and snippets.

View alexeystrakh's full-sized avatar
🏠
Working from home

Alexey Strakh alexeystrakh

🏠
Working from home
View GitHub Profile
@alexeystrakh
alexeystrakh / appium.pullFile.log
Created February 25, 2019 20:17
Appium PullFile Error "Cannot mount the media folder"
System.InvalidOperationException
HResult=0x80131509
Message=An unknown server-side error occurred while processing the command. Original error: Cannot mount the media folder of the device with UDID 520ec2e9fccd3bd77a53e96dd9d08c54c134248a. Make sure osxfuse plugin has necessary permissions in System Preferences->Security & Privacy. Error code: 1; stderr output: Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.
Source=WebDriver
StackTrace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Appium.AppiumDriver`1.PullFile(String pathOnDevice)
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
var a = new A { };
Console.WriteLine(string.Format("Result = [{0}]", a?.B?.Foo));
}
}
@alexeystrakh
alexeystrakh / gist:fdc3da5746027272a179
Created May 20, 2015 07:10
#ios #xamarin Disable Button Tap Lag in UITableView controls
public static class TableViewHelper
{
public static void DisableButtonTapLag(this UITableView target)
{
if (target == null)
return;
//http://stackoverflow.com/questions/19256996/uibutton-not-showing-highlight-on-tap-in-ios7
target.DelaysContentTouches = false;
foreach (UIView currentView in target.Subviews)