Home > other >  Consult: python selenium hidden button how to operate?
Consult: python selenium hidden button how to operate?

Time:09-20


I want to ask you a question, I use the selenium climb take an examination of website title, as shown in figure 1, the mouse moved to the test question box will appear "view" button, as shown in figure 2, click can see after exams, "view" button corresponding to the web page source code is in figure 3, the python code I wrote is the figure 4, click on the web page not as expected, where is the problem? thank you

CodePudding user response:

That view button does not appear? Wrong, or the element positioning?
But look at your figure 4 code, mouse-over code wrong, at least have the usage, please click (). The perform ()?
 
Select_CW_config=(By XPATH, "//div [@ title='financial integration]")
Def Win_XF (self) : # hovers to financial integration
Move=self. Find_element (* self. Select_CW_config) # hovering
ActionChains (self. The driver). Move_to_element (move). The perform ()
Sleep (1)
Self. Driver. Find_element (* self. Select_CW_config). Click ()

CodePudding user response:

Thank you,
Take a closer look at web site source code that the "view" button code actually in other place...
  • Related