css selector: xpath:
css selector:
$$(".mainLeft>div>h1")
xpath:
$x(".mainLeft>div>h1")
name = selectText(".mainLeft>div>h1");
xingzhi = selectText(".comTinyDes>tbody>tr:nth-child(1)>td:nth-child(2)>span");
guimo = selectText(".comTinyDes>tbody>tr:nth-child(2)>td:nth-child(2)>span");
wangzhan = selectText(".comTinyDes>tbody>tr:nth-child(3)>td:nth-child(2)>span");
hangye = selectText(".comTinyDes>tbody>tr:nth-child(4)>td:nth-child(2)>span");
dizhi = selectText(".comTinyDes>tbody>tr:nth-child(5)>td:nth-child(2)>span").replace("查看公司地图","");
jianjie = selectText("div[class=part2]").replace("公司介绍","");
dizhi: $$(".lxfs>ul>li:nth-child(1)>font")
youbian: $$(".lxfs>ul>li:nth-child(2)>font")
lianxiren: $$(".lxfs>ul>li:nth-child(3)>font")
youxiang: $$(".lxfs>ul>li:nth-child(4)>font")
dianhua: $$(".lxfs>ul>li:nth-child(5)>font")
chuanzheng: $$(".lxfs>ul>li:nth-child(6)>font")
最新文章
- web端功能测试总结(一)
- 【java开发系列】—— JDK安装
- C++中关于new及内存地址的思考
- ISV 和SI 是什么
- ASP.NET的SEO:目录
- 如何配置LCD背光和LED,调试方法
- What is the difference between supervised learning and unsupervised learning?
- hibernate篇章三-- hibernate配置文件hibernate.cfg.xml的详细解释
- Unity 地形
- php 创建文件
- WPF MVVM 架构 Step By Step(4)(添加bindings - 完全去掉后台代码)
- git上传文件到github
- js 对象,数组,字符串,相互转换
- js关闭当前页
- gitlab 10安装
- MySQL8的注意点
- IntelliJ IDEA下载及安装,破解
- Docker技术入门与实战 第二版-学习笔记-6-仓库
- 【CF932F】Escape Through Leaf 启发式合并set维护凸包
- AWS系列-Amazon Simple Notification Service (SNS)
热门文章
- USACO Prime Palindromes 构造回文数
- 同步fifo的verilogHDL设计实例
- 使用sqlite保存数据返回主键
- Main方法的执行过程(转)
- 17.1.1.3 Creating a User for Replication
- phantomjs环境搭建已经运行
- cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: 解决办法
- Qt 释放新建窗口资源
- Ibatis调用存储过程实现增删改以及分页查询
- [置顶] 深入浅出MongoDB(三)环境搭建