Unable to type within username field within ProtonMail signup page using Selenium and Python

后端 未结 2 1305
借酒劲吻你
借酒劲吻你 2020-12-12 04:15

Hi I was trying to type the username field using Selenium and Python for the website https://mail.protonmail.com/create/new?language=en.

From the developer tool, I

2条回答
  •  鱼传尺愫
    2020-12-12 05:04

    Your xpath is OK, but the forms are inside an iframe.

    So you need to switch to the iframe first:

    driver.switchTo().frame(n);
    

    Edit: If you read the TOS, you will see

    This Service is provided exclusively to persons. Accounts registered by “bots” or automated methods are not authorized and will be terminated.

提交回复
热议问题