Home > other >  Teach beginners small white, the login operation judging by looking for the next interface elements,
Teach beginners small white, the login operation judging by looking for the next interface elements,

Time:11-28




After the operation complains, as if to find elements, but I always can't see where there is a problem,




CodePudding user response:

No element bai, this you want to control the page source code to check the xpath is correct

CodePudding user response:

After another wall bumps bumps

CodePudding user response:

reference 1st floor TRHX response:
no bai, the element that you want to control the page source code to check for correct xpath


Hello, I want to according to an element of the next interface to determine whether the login is successful, if the next is the element is printed on the interface login successful, fail to log in to print without this element, total feel a bit wrong, but don't understand where there is a problem

CodePudding user response:

reference qq_43532129 reply: 3/f
Quote: refer to 1st floor TRHX response:

No bai, the element that you want to control the page source code to check for correct xpath


Hello, I want to according to an element of the next interface to determine whether the login is successful, if the next is the element is printed on the interface login successful, fail to log in to print without this element, always feel a bit wrong, but don't understand where there are problems

Thinking is no problem, according to the above error is xpath can not find the elements, check whether the xpath you write wrong, or you can change an element to determine

CodePudding user response:

Two possible case, 1 is the element does not positioning, need to change position code; 2 page is not loaded completely lead to locate failure

CodePudding user response:

If the page is a dynamic loading advice plus time delay time

CodePudding user response:

Browser drivers need to change, if you have updated the browser
  • Related