|  |  |  | @ -39,17 +39,22 @@ class JdClient: | 
			
		
	
		
			
				
					|  |  |  |  |                 # print('等待1秒') | 
			
		
	
		
			
				
					|  |  |  |  |          | 
			
		
	
		
			
				
					|  |  |  |  |         self.dev.implicitly_wait(2) | 
			
		
	
		
			
				
					|  |  |  |  |         self.dev.click(531, 1323) | 
			
		
	
		
			
				
					|  |  |  |  |         while True:  #531,1323 | 
			
		
	
		
			
				
					|  |  |  |  |             if self.dev(text='成功邀请10人助力赢好礼').exists: | 
			
		
	
		
			
				
					|  |  |  |  |                 print(self.device, '成功邀请10人助力赢好礼') | 
			
		
	
		
			
				
					|  |  |  |  |                 self.dev.implicitly_wait(1) | 
			
		
	
		
			
				
					|  |  |  |  |                 # self.dev(text='为好友助力').click() | 
			
		
	
		
			
				
					|  |  |  |  |                 self.dev.click(531, 1323) | 
			
		
	
		
			
				
					|  |  |  |  |                 break | 
			
		
	
		
			
				
					|  |  |  |  |             else: | 
			
		
	
		
			
				
					|  |  |  |  |                 self.dev.implicitly_wait(1) | 
			
		
	
		
			
				
					|  |  |  |  |                 # print('等待1秒') | 
			
		
	
		
			
				
					|  |  |  |  |         # self.dev.click(531, 1323) | 
			
		
	
		
			
				
					|  |  |  |  |         # while True:  #531,1323 | 
			
		
	
		
			
				
					|  |  |  |  |         #     if self.dev(text='成功邀请10人助力赢好礼').exists: | 
			
		
	
		
			
				
					|  |  |  |  |         #         print(self.device, '成功邀请10人助力赢好礼') | 
			
		
	
		
			
				
					|  |  |  |  |         #         self.dev.implicitly_wait(1) | 
			
		
	
		
			
				
					|  |  |  |  |         #         # self.dev(text='为好友助力').click() | 
			
		
	
		
			
				
					|  |  |  |  |         #         self.dev.click(531, 1323) | 
			
		
	
		
			
				
					|  |  |  |  |         #         break | 
			
		
	
		
			
				
					|  |  |  |  |         #     else: | 
			
		
	
		
			
				
					|  |  |  |  |         #         self.dev.implicitly_wait(1) | 
			
		
	
		
			
				
					|  |  |  |  |         #         # print('等待1秒') | 
			
		
	
		
			
				
					|  |  |  |  |         n = 10 | 
			
		
	
		
			
				
					|  |  |  |  |         while n > 0: | 
			
		
	
		
			
				
					|  |  |  |  |             self.dev.click(531, 1323) | 
			
		
	
		
			
				
					|  |  |  |  |             self.dev.implicitly_wait(1) | 
			
		
	
		
			
				
					|  |  |  |  |             n -= 1 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     def full_steps(self, text): | 
			
		
	
		
			
				
					|  |  |  |  |         self.set_clipboard(text) | 
			
		
	
	
		
			
				
					|  |  |  | 
 |