自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 Python Day 5

Parsing and Extracting:data = "From [email protected] Sat Jan 5 09:14:16 2008"atpos = data.find('@')sppos = data.find(' ', atpos)host = data[atpos+1 : sppos]Using in as a Logical Operato...

2018-05-30 04:07:08 231

原创 Python Day 4

try except else fianlly:try: a = 10 b = 20 c = 10 d = (a + b) / c print(d)except: print("In the except block")else: print("Because there was no exception, else is execut...

2018-05-28 20:24:29 154

转载 Ubuntu

Key map: https://ubuntuforums.org/archive/index.php/t-188761.htmlpc is for function keys.us is for US layout. (BKSL is under US)Install Sublime: http://tipsonubuntu.com/2017/05/30/install-sublime-text...

2018-05-28 06:31:57 266

原创 Python Day 3

while x < 10;print("Value of x is: " + str(x)) x = x + 1 if x == 8: breakelse: print("won't print after break")While/Else:for k,v in d.items(): print(k) print(v).ite...

2018-05-25 21:00:29 134

转载 Launch Sublime Text 2 or 3 from the Mac OSX Terminal

https://ashleynolan.co.uk/blog/launching-sublime-from-the-terminalAs I’m working in the OSX Terminal more and more these days, I'm always on the lookout for time saving shortcuts.A really useful tip t...

2018-05-24 11:30:00 233

原创 Selenium Generic Method to Explicit Wait

from traceback import print_stackfrom utilities.handy_wrappers import HandyWrappersfrom selenium.webdriver.support.ui import WebDriverWaitfrom selenium.webdriver.support import expected_conditions ...

2018-05-22 20:11:06 195

原创 Selenium Implicit Wait VS Explicit Wait

Implicit Wait: If elements are not immediately available, an implicit wait tells Web Driverto poll the DOM for a certain amount of time. The default setting is 0. Onceset, the implicit wait is set for...

2018-05-22 09:46:21 733

原创 System PATH Setup

The following instructions will help you create your own PATH to a unique folder on your Mac or copy the file to an existing PATH directory for ChromeDriver.Download the ChromeDriver executable.Now we...

2018-05-17 03:46:54 209

原创 OneDrive Setup

Login your OneDrive account. Your default folder is your own files.Choose Shard from left bar. Click the folder you want to sync. DO NOT check any radio.For Windows, have to uninstall OneDrive to clea...

2018-05-17 03:06:23 1497

原创 unittest

import unittestclass LoginTest(unittest.TestCase): def test_validLogin if adminIcon is not None: print("Login Successful") else: print("Login Failed")

2018-05-16 00:13:49 141

原创 pytest

import [email protected]_fixture()def setUp(): print("Once before every method") yeild print("Once after every method") def test_methodA(setUp): print("Runnin...

2018-05-16 00:12:23 612

原创 Python Day 2 Unit Test

import unittestclass TestCaseDemo(unittest.TestCase) def setUp(self): print("This will run once before evry test") def test_methodA(self): print("Test A") def test_met...

2018-05-15 04:12:33 145

原创 Selenium Day 2

driver.execute_script()Run JavaScript commands.driver.execute_script("arguments[0].scrollIntoView(true);, element)element will be scrolled to the top of the page.header may cover the element when you ...

2018-05-15 03:13:44 147

原创 Selenium Day 1

find_element_by_id()find_element_by_name()find_element_by_xpath()find_element_by_css_selector()find_element_by_link_text() :链接tag的文字内容 不是链接地址find_element_by_partial_link_text() :链接tag的文字内容的一部分 不是...

2018-05-10 22:06:34 114

原创 Python Day 1

text = "This Is Mixed Case"#print(text + 2) Can't convert 'int' object to str implicitlyprint(text + str(2))print(text + "2")substring = a[1:6]# Starting index is inclusive# Ending index is exclu...

2018-05-09 19:42:31 143

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除