Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinho committed Feb 16, 2016
1 parent 53dfdaf commit ac4348e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
14 changes: 8 additions & 6 deletions AppiumForMac.xcodeproj/project.pbxproj
Expand Up @@ -61,7 +61,7 @@
36D203DF17A5D8B900011A3A /* AfMHTTPConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 36D203DE17A5D8B900011A3A /* AfMHTTPConnection.m */; };
36D203E217A5DE7000011A3A /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 36D203E117A5DE7000011A3A /* Security.framework */; };
36D7968A17BF1A4B00D1B81E /* PFAssistive.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 36D7968917BF1A4B00D1B81E /* PFAssistive.framework */; };
4F31407119662998009BDF33 /* PFAssistive.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 36D7968917BF1A4B00D1B81E /* PFAssistive.framework */; };
4F31407119662998009BDF33 /* PFAssistive.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 36D7968917BF1A4B00D1B81E /* PFAssistive.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -566,7 +566,8 @@
isa = PBXProject;
attributes = {
CLASSPREFIX = AfM;
LastUpgradeCheck = 0460;
LastTestingUpgradeCheck = 0700;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = Appium;
};
buildConfigurationList = 3610348017A4990E00DB79AA /* Build configuration list for PBXProject "AppiumForMac" */;
Expand Down Expand Up @@ -732,7 +733,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
Expand All @@ -742,6 +742,7 @@
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
Expand All @@ -759,15 +760,14 @@
MACOSX_DEPLOYMENT_TARGET = 10.7;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "-lxml2";
SDKROOT = macosx10.8;
SDKROOT = macosx;
};
name = Debug;
};
361034B517A4990F00DB79AA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
Expand All @@ -787,7 +787,7 @@
HEADER_SEARCH_PATHS = "";
MACOSX_DEPLOYMENT_TARGET = 10.7;
OTHER_LDFLAGS = "-lxml2";
SDKROOT = macosx10.8;
SDKROOT = macosx;
};
name = Release;
};
Expand All @@ -806,6 +806,7 @@
LD_RUNPATH_SEARCH_PATHS = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.7;
OTHER_LDFLAGS = "-lxml2";
PRODUCT_BUNDLE_IDENTIFIER = "com.appium.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = AppiumForMac;
SDKROOT = macosx;
VALID_ARCHS = x86_64;
Expand All @@ -828,6 +829,7 @@
LD_RUNPATH_SEARCH_PATHS = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.7;
OTHER_LDFLAGS = "-lxml2";
PRODUCT_BUNDLE_IDENTIFIER = "com.appium.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = AppiumForMac;
SDKROOT = macosx;
VALID_ARCHS = x86_64;
Expand Down
2 changes: 1 addition & 1 deletion AppiumForMac/AppiumForMac-Info.plist
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string>appium-for-mac</string>
<key>CFBundleIdentifier</key>
<string>com.appium.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
10 changes: 5 additions & 5 deletions AppiumForMac/Server/Handlers/AfMHandlers.m
Expand Up @@ -691,11 +691,11 @@ -(AppiumMacHTTPJSONResponse*) postElementClear:(NSString*)path
[self respondWithJsonError:status session:sessionId];
}

id value = [element value];
if (value != nil && [value isKindOfClass:[NSString class]])
{
[element setValue:@""];
}
//id value = [element value];
//if (value != nil && [value isKindOfClass:[NSString class]])
//{
// [element setValue:@""];
//}

// TODO: Add error handling
return [self respondWithJson:nil status:kAfMStatusCodeSuccess session: sessionId];
Expand Down
4 changes: 2 additions & 2 deletions examples/calculator.py
Expand Up @@ -38,9 +38,9 @@ def numToString(num):
rand2 = randint(0,100)

print 'Finding Some Elements...'
eclear = driver.find_element_by_id('_NS:751')
eclear = driver.find_element_by_id('_NS:752')
eplus = driver.find_element_by_id('_NS:131')
eequals = driver.find_element_by_id('_NS:698')
eequals = driver.find_element_by_id('_NS:699')

print 'Clearing the calculator'
eclear.click()
Expand Down

0 comments on commit ac4348e

Please sign in to comment.