原创 Appium報錯:org.openqa.selenium.SessionNotCreatedException: A new session could not be created

代碼: public void setUp() throws Exception { DOMConfigurator.configure("log4j.xml"); DesiredCapabilities capabilit

原创 Appium使用Inspactor報"Could not connect to server; are you sure it's running?"

需要選擇Server選項,即點擊選擇“Customer Server”再啓動即可。

原创 批處理判斷拖放文件

@echo off for %%a in (%*) do ( echo 目錄:"%%~dpa" 文件名 "%%~nxa" ) pause 轉自:http://www.bathome.net/thread-33808-1-1.htm

原创 對某一程序取消用戶賬戶控制

在 HKEY_CURRENT_USERS\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers 鍵下面新建值,值的名字是程序的全路徑,值數據是“RunAsI

原创 [Windows批處理]清除IE緩存

@echo 現在清除Cookies @Rundll32 InetCpl.cpl,ClearMyTracksByProcess 2 @echo 現在清除瀏覽歷史 @Rundll32 InetCpl.cpl,ClearMyTracksB

原创 Android SDK 環境變量配置-Windows7-20170427

1.安裝JDK http://blog.csdn.net/jlminghui/article/details/57127283 2.下載安裝包 https://developer.android.com/studio/index.

原创 Logcat保存數量設置

1.啓動Eclipse; 2.Windows>Preferences>Android>Logcat; 3.Maximum number of logcat messagees to buffer: 右側數值默認5000,改爲你想要的數字

原创 轉:DOS批處理命令中實現自動命名(年月日+時分秒)

轉自:http://yiliusiyu.blog.163.com/blog/static/682758720135141732366/ 在DOS批處理命令中,對創建的文件自動命名,若要使用年月日很簡單,但如果要求時分秒的話,會出錯。

原创 ios10下載地址

http://bbs.feng.com/plugin.php?id=attachment_download:tongji&aid=11375253&name=iOS_beta_Configuration_Profile.mobilecon

原创 隱藏Project中工期、開始時間、完成時間

原圖: 1.選中要隱藏的工期、開始時間、完成時間; 2.右鍵選擇“字體”; 3.字體設置爲"Cambria Math"; 4.點擊“確定”。 最終效果:

原创 Android 性能測試

關於Android的性能測試,看到一篇很好的文章,轉載過來和大家分享下。    Android性能測試,跟pc性能測試一樣分爲客戶端及服務器,但在客戶端上的性能測試分爲 2 類,對於應用性能測試,包括很多測試項,如啓動時間、內

原创 Log4j日誌文件亂碼

轉自:http://blog.csdn.net/inkfish/article/details/4761357 感謝! 症狀:在默認語言非中文(或者說默認語言不支持中文的)的Windows、Linux、Unix上,用log4j打印日誌,出

原创 Windows系統下常用程序(或bat)自定義Windows快捷鍵啓動

背景:        因需要經常使用Md5工具驗證安裝包md5,每次都鼠標點擊進入文件夾>點擊程序,雖然也可以創建快捷方式去桌面點擊或者將快捷方式固定到任務欄點擊,但還是覺得麻煩,還是鍵盤來的快一些,總結一下將執行程序(bat也可以)設置

原创 Windows命令行關閉IE代理

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

原创 Selenium之Web頁面滾動條滾操作

//移動到元素element對象的“頂端”與當前窗口的“頂部”對齊 ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView();", element