Skip to content

Instantly share code, notes, and snippets.

View cyildirim's full-sized avatar
🚣‍♂️

Cyildirim cyildirim

🚣‍♂️
View GitHub Profile
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'cans-MacBook-Pro-4.local', ip: '10.1.10.199', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_60'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities [{app=/opt/sahibinden/sahibinden.app, networkConnectionEnabled=false, noReset=true, bundleid=com.sahibinden.sahibinden, databaseEnabled=false, deviceName=iPhone 6, platform=MAC, nativeInstrumentsLib=true, newCommandTimeout=600, platformVersion=10.2, webStorageEnabled=false, locationContextEnabled=false, automationName=XCUITest, browserName=, takesScreenshot=true, waitForAppScript=$.delay(5000); $.acceptAlert();, javascriptEnabled=true, platformName=iOS}]
Session ID: 27acf886-321b-4af7-a6cc-100d2374be30
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccesso
@cyildirim
cyildirim / Notification Disable
Created September 9, 2016 05:52
Webdriver Notification Disable
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("profile.default_content_setting_values.notifications", 2); // NOTIFICATION DISABLE
ChromeOptions options = new ChromeOptions();
options.addArguments(Arrays.asList("--start-maximized", "allow-running-insecure-content", "ignore-certificate-errors"));
options.addArguments("--no-sandbox");
options.setExperimentalOption("prefs", prefs);
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("enable-restore-session-state", true);