会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
来啦,已经跑了好几圈啦....
Canvas is not supported in your browser.
xiaofang.bk
往
事
如
风
:
:  坚持就是胜利
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
35
下一页
2019年5月14日
vue里面的this指向
摘要: 这里用箭头函数和不用箭头函数this都是指向同一个,都是vueconponent就是当前的组件
阅读全文
posted @ 2019-05-14 23:59 fangpengcheng_方鹏程
阅读(505)
评论(0)
推荐(0)
编辑
2019年5月10日
(\w+)\s*, \s*(\w+)
摘要: \s表示空格 \w表示任何字符,字母数字下划线 _就表示下划线
阅读全文
posted @ 2019-05-10 11:16 fangpengcheng_方鹏程
阅读(560)
评论(0)
推荐(0)
编辑
2019年5月8日
:nth-child 与 ;nth-of-child
摘要: //:nth-child:是选择父元素下的第几个元素,不分标签类别,计数从1开始 //:nth-of-type:是选择父元素下的同类型元素的第几个元素。区分标签类别,计数从1开始
阅读全文
posted @ 2019-05-08 17:13 fangpengcheng_方鹏程
阅读(227)
评论(0)
推荐(0)
编辑
selenium - switch_to_alert() - 警告框处理
摘要: 在WebDriver中处理JavaScript所生成的alert、confirm以及prompt十分简单,具体做法是使用 switch_to.alert 方法定位到 alert/confirm/prompt,然后使用text/accept/dismiss/ send_keys等方法进行操作。 tex
阅读全文
posted @ 2019-05-08 16:05 fangpengcheng_方鹏程
阅读(1779)
评论(0)
推荐(1)
编辑
ruby异常处理
摘要: begin # 这段代码抛出的异常将被下面的 rescue 子句捕获 rescue # 这个块将捕获所有类型的异常 retry # 这将把控制移到 begin 的开头 end
阅读全文
posted @ 2019-05-08 16:02 fangpengcheng_方鹏程
阅读(121)
评论(0)
推荐(0)
编辑
selenium上传文件
摘要: browser.find_element_by_id("schword").send_keys(keyword) send_keys如果传中文,应写为 keyword = u"你的关键词",如果是从文件读取,通过这个方法读文件时,file = codecs.open('keywords.txt',
阅读全文
posted @ 2019-05-08 15:18 fangpengcheng_方鹏程
阅读(169)
评论(0)
推荐(0)
编辑
ruby的DIR.pwd
摘要: 在ruby 中,以下代码可以获得当前脚本的绝对路径: require 'pathname' puts Pathname.new(__FILE__).realpath 将以上代码保存在test1.rb中,然后放在D盘的根目录下。测试的时候我们进入C盘,执行ruby d:/test1.rb,控制台会输出
阅读全文
posted @ 2019-05-08 14:22 fangpengcheng_方鹏程
阅读(283)
评论(0)
推荐(0)
编辑
2019年5月7日
ruby+selenium-webdriver测试
摘要: 参考这里的博客https://www.cnblogs.com/smiling007/p/5116662.html
阅读全文
posted @ 2019-05-07 21:59 fangpengcheng_方鹏程
阅读(200)
评论(0)
推荐(0)
编辑
ruby
摘要: 注释puts x会得到不一样的结果
阅读全文
posted @ 2019-05-07 18:16 fangpengcheng_方鹏程
阅读(142)
评论(0)
推荐(0)
编辑
ruby类对象和对象
摘要: class Box def initialize(w,h) @width,@height=w,h end def getArea puts "class of self #{self.class}" @height*@width end puts "class of self #{self.class}" puts "name o f #{sel...
阅读全文
posted @ 2019-05-07 14:35 fangpengcheng_方鹏程
阅读(157)
评论(0)
推荐(0)
编辑
上一页
1
···
11
12
13
14
15
16
17
18
19
···
35
下一页