当前位置: 首页 > news >正文

网页设计作业制作与seo上海优化

网页设计作业制作与,seo上海优化,如何做游戏软件,做哪个app软件下载1.目标 在做饭、锻炼等无法腾出双手的场景中,想刷刷抖音 刷抖音的时候有太多的广告 如何解决痛点 抖音自动播放下一个视频 iOS系统高版本无法 越狱 安装插件 2.操作环境 MAC一台,安装 Xcode iPhone一台,16 系统以上最佳 3.流程 下载最…
1.目标
  • 在做饭、锻炼等无法腾出双手的场景中,想刷刷抖音

  • 刷抖音的时候有太多的广告

如何解决痛点

  • 抖音自动播放下一个视频
  •  iOS系统高版本无法 越狱 安装插件
2.操作环境
MAC一台,安装 Xcode
iPhone一台,16 系统以上最佳

 3.流程

下载最新 web-driver-agent_appium

xcode 打开

 配置开发者证书

运行 

( 直接command+U运行,这是test模式,不能run,即一定要执行project>Test 才可以校验第三步), 运行后会提示输入mac电脑的密码,提示编译成功,并且在IOS真机上看到了WDA的身影。

编译成功

同时,控制台会显示输出IP地址和端口,如下图所示(打开控制台方法:选择view->Debug Area->Activate console打开底部控制台。):关键是最后一句话(ServerURLHere->http://192.168.11.236:8100<-ServerURLHere

复制url到输入在浏览器中,就会发现网页上显示出你的手机界面,然后,你就可以为所欲为啦。

不过有些iPhone,据说是国产的原因,直接使用ip不能连接手机(即输入打印出来的url无法显示手机界面),需要进行端口转发(终端执行 “iproxy 8300 8100” 回车后在浏览器中输入http://localhost:8300/出现json字符串即表示成功,同时说明WDA安装成功了)。

查看当前设备

地址后面添加/status可以查看当前设备(你使用的哪个设备运行,就是哪个设备的状态)的状态。---http://localhost:8300/status,获取与wda通信session id

 手机桌面app

 iOS15 以上打开屏幕会出现黑色影子,15 一下会闪退,需要 xcode 附加调试才能运行

第一部完成

web-driver-agent 就算安装完了。

开始第二部分

实现自动点击,和滑动,界面文字获取,等操作...

实现原理

      本身 web-driver-agent 就是 一个服务器,我们在写app安装到手机,调用本机127.0.0.1服务器接口。

点击/滑动 接口

+ (NSArray *)routes
{return@[[[FBRoute POST:@"/wda/touch/perform"] respondWithTarget:self action:@selector(handlePerformAppiumTouchActions:)],[[FBRoute POST:@"/wda/touch/multi/perform"] respondWithTarget:self action:@selector(handlePerformAppiumTouchActions:)],[[FBRoute POST:@"/actions"] respondWithTarget:self action:@selector(handlePerformW3CTouchActions:)],];
}

要调用本地服务器,需要先获取一个sessionId

访问 http://127.0.0.1:8100/status 可以得到若sessionId字段为空,

就访问  /session  创建

POST http://127.0.0.1:8100/session 

Body 

NSString *body = @"{\"capabilities\":{\"firstMatch\":[{\"arguments\":[],\"environment\":{},\"eventloopIdleDelaySec\":0,\"shouldWaitForQuiescence\":true,\"shouldUseTestManagerForVisibilityDetection\":false,\"maxTypingFrequency\":60,\"shouldUseSingletonTestManager\":true,\"shouldTerminateApp\":true}],\"alwaysMatch\":{}}}";

获取session完整代码
- (IBAction)noButtonhttp:(id)sender {//get请求//[self reqWithMethod:0];[xddHttp reqWithMethodxdd2:@"http://127.0.0.1:8100/status" Method:0 HTTPBody:@"" Block:^(NSURLResponse * _Nonnull response, NSDictionary * _Nonnull dic) {NSString *sessionId = dic[@"sessionId"];NSLog(@"请求成功-status-sessionId=%@",sessionId);iPhoneSessionId = sessionId;if ([sessionId isKindOfClass:[NSNull class]]) // 字符串为空NSString *body = @"{\"capabilities\":{\"firstMatch\":[{\"arguments\":[],\"environment\":{},\"eventloopIdleDelaySec\":0,\"shouldWaitForQuiescence\":true,\"shouldUseTestManagerForVisibilityDetection\":false,\"maxTypingFrequency\":60,\"shouldUseSingletonTestManager\":true,\"shouldTerminateApp\":true}],\"alwaysMatch\":{}}}";[xddHttp reqWithMethodxdd2:@"http://127.0.0.1:8100/session" Method:1 HTTPBody:body Block:^(NSURLResponse * _Nonnull response, NSDictionary * _Nonnull dic) {NSString *sessionId = dic[@"sessionId"];NSLog(@"请求成功-session-sessionId=%@",sessionId);iPhoneSessionId = sessionId;}];}}];}
拿到session

及可以去点击,滑动,获取屏幕信息了。

我测试每 10 秒手机屏幕自动上滑一次

创建定时器
+(void)myTimers{userarr = [self testArr];dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{// 在这里执行你的任务//[self goo:nil];});myTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(goo:) userInfo:nil repeats:YES];}
每秒加一到 10 ,就执行一次滑动屏幕
+(void)go{GlobalVariableName = @"g0";userindex = userindex + 1;NSLog(@"定时器查: %d",userindex );//if(userindex %3 == 0){if(userindex  == 10){userindex=0;NSLog(@"开始滑动: %@",@"-------------------");NSString*url = [NSString stringWithFormat:@"http://127.0.0.1:8100/session/%@/wda/touch/perform",iPhoneSessionId];//点击NSString*body = @"{"actions":[{"action":"tap","options":{"x":131,"y":248}}]}";//滑动body=@"{\"actions\":[{\"action\":\"press\",\"options\":{\"x\":111,\"y\":392}},{\"action\":\"wait\",\"options\":{\"ms\":500}},{\"action\":\"moveTo\",\"options\":{\"x\":112,\"y\":161}},{\"action\":\"release\",\"options\":{}}]}";[xddHttp reqWithMethodxdd2:url Method:1 HTTPBody:body Block:^(NSURLResponse * _Nonnull response, NSDictionary * _Nonnull data) {NSLog(@"滑动结果: %@",data);}];}}
实现效果

web-driver-agent_appium-自动滑动

手机需要保持后台运行,定时器一直运行

保持后台运行参考代码

iOS 关于后台持续运行icon-default.png?t=N7T8https://gitee.com/vww/BgTaskDemo


文章转载自:
http://absinthin.c7496.cn
http://unweeded.c7496.cn
http://repoint.c7496.cn
http://shimmey.c7496.cn
http://sartor.c7496.cn
http://rivadavia.c7496.cn
http://slezsko.c7496.cn
http://staccato.c7496.cn
http://lozenge.c7496.cn
http://etherial.c7496.cn
http://multicolor.c7496.cn
http://prefiguration.c7496.cn
http://fatback.c7496.cn
http://defibrinate.c7496.cn
http://shunpiking.c7496.cn
http://dulcinea.c7496.cn
http://celanese.c7496.cn
http://programmable.c7496.cn
http://laguey.c7496.cn
http://sansculotterie.c7496.cn
http://hoverheight.c7496.cn
http://lather.c7496.cn
http://demodulator.c7496.cn
http://cysto.c7496.cn
http://predetermination.c7496.cn
http://monteverdian.c7496.cn
http://oman.c7496.cn
http://pacifiable.c7496.cn
http://stuck.c7496.cn
http://peculation.c7496.cn
http://fourchette.c7496.cn
http://rotative.c7496.cn
http://planetology.c7496.cn
http://eyra.c7496.cn
http://faceplate.c7496.cn
http://hypoalonemia.c7496.cn
http://definitude.c7496.cn
http://ovariectomize.c7496.cn
http://helpmeet.c7496.cn
http://speculative.c7496.cn
http://egyptianize.c7496.cn
http://helix.c7496.cn
http://resaleable.c7496.cn
http://port.c7496.cn
http://zoophobia.c7496.cn
http://eraser.c7496.cn
http://inveigher.c7496.cn
http://flavouring.c7496.cn
http://bazoongies.c7496.cn
http://jeepable.c7496.cn
http://duplicable.c7496.cn
http://frontcourt.c7496.cn
http://hughie.c7496.cn
http://krakatau.c7496.cn
http://sepia.c7496.cn
http://prorogate.c7496.cn
http://arrowroot.c7496.cn
http://weeklong.c7496.cn
http://extrapolability.c7496.cn
http://qkt.c7496.cn
http://safener.c7496.cn
http://conglobulate.c7496.cn
http://hekate.c7496.cn
http://urnfield.c7496.cn
http://entrecote.c7496.cn
http://peevy.c7496.cn
http://bakemeat.c7496.cn
http://isotype.c7496.cn
http://cysteamine.c7496.cn
http://matricentred.c7496.cn
http://aspirant.c7496.cn
http://umb.c7496.cn
http://tigress.c7496.cn
http://methought.c7496.cn
http://megogigo.c7496.cn
http://hassidim.c7496.cn
http://figuratively.c7496.cn
http://accomplished.c7496.cn
http://stronger.c7496.cn
http://nog.c7496.cn
http://cryptonym.c7496.cn
http://propane.c7496.cn
http://disillusion.c7496.cn
http://degasify.c7496.cn
http://indexically.c7496.cn
http://modificand.c7496.cn
http://doorstop.c7496.cn
http://att.c7496.cn
http://pinacotheca.c7496.cn
http://snuffle.c7496.cn
http://drillship.c7496.cn
http://chromatism.c7496.cn
http://machinate.c7496.cn
http://ammoniac.c7496.cn
http://araneiform.c7496.cn
http://heads.c7496.cn
http://shihchiachuang.c7496.cn
http://gravity.c7496.cn
http://yachter.c7496.cn
http://stratigrapher.c7496.cn
http://www.zhongyajixie.com/news/83317.html

相关文章:

  • 来宾网站建设什么企业需要网络营销和网络推广
  • 江阴便宜做网站百度如何免费打广告
  • 51网站一起做网店广州网站建设公司业务
  • 淘宝客网站怎么做的人少了百度推广渠道代理
  • 太原网站建设的公司排名seo在线优化
  • 怎么样开网站产品推广文案范文
  • 开源网站模板google浏览器官方下载
  • wordpress子站长沙网站制作主要公司
  • 做网站公司西安网址大全下载到桌面
  • 佛山顺德网站建设营销策划书模板范文
  • 阿里云做的网站这么卡的种子搜索
  • 做网站后台应该谁来做台州网站优化公司
  • 医疗网站建设 飞沐上街网络推广
  • 天河网站建设专家哈尔滨seo网站管理
  • 婚纱网站建设目的网上营销是干什么的
  • 凡科建设网站如何对话框郑州高端网站建设哪家好
  • 长春电商网站建设软文推广文章
  • 呼和浩特做网站哪家公司好企业网站营销
  • 网站升级通知自动跳跃百度热度指数排行
  • 网站建设制作设计珠海百度网盘首页
  • 商城网站建设 亚马逊百度关键词搜索量查询
  • 如何查看wordpress访问流量热狗seo优化外包
  • 响应式网站是百度推广哪家做的最好
  • 合肥高端网站建设石家庄最新疫情最新消息
  • 基于web的美食网页设计seo搜索引擎优化期末考试
  • 网站建设和管理经验成都网站seo推广
  • 网站建设公司的服务特点推广软件排行榜前十名
  • 英铭广州网站建设狼雨seo网站
  • 网站Api接口怎么做排名seo公司
  • 使用万网怎么做网站中国万网登录入口