Home > other >  Some web pages using selenium the xpath error TypeError: object does not support this property or me
Some web pages using selenium the xpath error TypeError: object does not support this property or me

Time:12-09

Under the same environment, if you open the page is a "baidu" or "taobao", xpath won't be looking for tips to find elements, as shown in figure 1.
If open the page of dahua NVR, the same code, the xpath would error TypeError: object does not support this property or method, as shown in figure 2. Is this why ah?

CodePudding user response:

To attach a drawing of the dahua page

CodePudding user response:

Is not found, finally didn't use xpath, use CSS to find elements,

CodePudding user response:

Xpath path or have a problem

CodePudding user response:

The browser problem, try using a different browser

CodePudding user response:

reference oyljerry reply: 3/f
xpath path still have problems

Does not xpath path problem, because there is no path, is also in baidu and measured error page,

CodePudding user response:

reference 4 floor abortion apes response:
browser problem, try using a different browser

Well, this is possible, to do this, I use the Internet explorer 8 and 11 other browsers do not try, because the NVR page with other browsers may can't open, firefox, but did not make the environment, now temporarily use to locate style way, temporarily to bypass this problem,

CodePudding user response:

I'm probably never is wrong xpath

CodePudding user response:

//input/@ uid='2856' is bad? Why have so strange way
  • Related