python Automation: dropdown select the positioning method of the tag style = "display: none;"
An error
selenium.common.exceptions.ElementNotVisibleException: Message: element not visible: Element is not currently visible and may not be manipulated
Interface Source :( Zen, for example)
Troubleshooting:
1) Because it is hidden, it needs to be seen before the positioning operation
2) If you still can not be located, if there is to wait for sleep before and after check out; xpath targeting efficiency low.
'' ' SELECT tag is positioned using the index if the operation hidden element words: style = "display: none; "; if [hidden] js not required, then js =' document.querySelectorAll ( "select" ) [0] .style = .display "Block"; ' driver.execute_script (JS) ------ document.querySelectorAll ( "sELECT") select all select. [0] This group label specified in the first of several. style.display = "block"; modify the style of display = "block", expressed visible. After execution sentence js code, the normal operation can be a drop-down box. '' ' # Index location; import: Import from the Select selenium.webdriver.support.select JS = ' document.querySelectorAll ( "SELECT") [2] = .style.display "Block"; ' # [2]: from zero Charles began the first of several to write a few driver. " // * [@ ID = 'Project'] " ) the Select (Project) .select_by_index ( . 1) # from zero check option of several
=== === to the period featured technical articles
I can learn, 'Employment?
Software testing should be how self?
Software testing, how to package your resume?
Software testing interview questions - Go to the student actual interview finishing -v2.0
writing logical thinking Software Test
actual project testing
software testing interview techniques
discussed training - training to guard against credit
Why test engineers to learn linux?
Software testing, how to increase the interview by rate?
Senior Year - a few notes to find work
Why send your resume, and delivered out either no response or no response - what reason?