wuyongfeng2018

Results 3 comments of wuyongfeng2018

滑块已解决,但是请问“网络拥堵”你是怎么解决的呢

> > 滑块已解决,但是请问“网络拥堵”你是怎么解决的呢 > > ![image](https://user-images.githubusercontent.com/12230993/180648552-cfc4e758-5650-45a7-9d2b-488a7a38da0c.png) 想问下 滑块的处理代码,我尝试拖动 id nc_1_n1z ,被告知无法拖动 iframe1 = self.driver.find_element(By.ID, 'baxia-dialog-content') self.driver.switch_to.frame(iframe1) sliding_block = self.driver.find_element(By.ID, 'nc_1_n1z') scale = self.driver.find_element(By.ID, 'nc_1__scale_text') ActionChains(self.driver).drag_and_drop_by_offset(sliding_block, scale.size['width'], -sliding_block.size['height']).perform()

> > 同卡在这一关过不去,手动拖滑块会出现。 > > ![image](https://user-images.githubusercontent.com/48608756/180648732-9f4e42dd-ec3b-4ed2-aa4f-5e130192ec21.png) > > 有一起研究的同志吗 > > 是大麦检测到了selenium , 需要用cmd 去打开chrome,然后selenium 连接已打开的chrome ![image](https://user-images.githubusercontent.com/43697232/180650552-00c55a58-587e-41ec-8844-ebffb1d02d23.png) ![image](https://user-images.githubusercontent.com/43697232/180650579-bf303693-3775-47a5-9718-d32b640b5d67.png) 尝试了用这个方法,但是好像还是不行