Home > other >  Why I can't locate?
Why I can't locate?

Time:12-24

Masters, I met a problem when writing web test, as shown in figure: I positioned div id="panel - 1026 - body," but I locate newCustomer - 1030 and the following div is washed-up, xpath and id are tried,, ask ace to give advice or comments
CusCode=driver. Find_element_by_id (" panel - 1026 - body ")
CusCode1=driver. Find_element_by_xpath ("//* [@ id='newCustomer - 1030] ")
Error: elenium.com mon. Exceptions. NoSuchElementException: Message: Unable to locate the element://* [@ id='newCustomer - 1030]

CodePudding user response:

You end up exactly which elements to locate? 1026 or 1030? The dynamic variation of the corresponding element id is? If not, then the elements included in the frame/iframe?

CodePudding user response:

To be honest,,, I don't know you ask is said what,,,,
  • Related