Skip to content

淘宝登录滑块失效获取不到滑块 #1

Description

@Litaibai-Geek
	# 检查是否出现了滑动验证码
	try:
		slider = browser.find_element_by_xpath("//span[contains(@class, 'btn_slide')]")
		if slider.is_displayed():
			ActionChains(browser).click_and_hold(on_element=slider).perform()
			ActionChains(browser).move_by_offset(xoffset=258, yoffset=0).perform()
			ActionChains(browser).pause(0.5).release().perform()
	except:
		pass

其中 if 判断一直为false,但是滑块出现了
问题出现在:slider = browser.find_element_by_xpath("//span[contains(@Class, 'btn_slide')]") 这段代码

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions