Home > front end >  Selenium how to deal with js assignment input window after the triggering event
Selenium how to deal with js assignment input window after the triggering event

Time:10-24

Website cannot directly input the user name, click on the button next to the "user select" ", pop-up window div, a drop-down menu for the user name and then assigned to input, this process is so complicated

I'll use the document of js. GetElementsByName remove the read-only attribute, selenium can analog input the user name, but by clicking the login button, or prompted to enter the user name
Also checked the information online, is the content of the input is changed, but no corresponding js event trigger, selenium input user name or an invalid

To solve all the situation should be how to deal with

CodePudding user response:

You are according to find_element_by_id this kind to find the label element, this kind of thing for id,
Note carefully whether within the iframe, within the iframe is switch_to. The first frame (), you click event or use webdriver simulation, simulated all the way down to

  • Related