NoSuchElementException: Message: no such element: Unable to locate element

preview_player
Показать описание
STUCK? Telegram us
btc address(bitcoin network) : 18Le59m82Z4RRTEH8kNDeNVFzXzVnxH6Se
usdt(TRC20) : TNL29JfK8Xx6boDZ54PqWwTKTxs4k6Z3cj This is a common selenium module error in python programming language
This error maybe caused by any of the following:
1. timing issues - try increasing your sleep time.
2. incorrect type of locator - an example is using ID values for xpath locator. Also know the difference between a button and an element.
3. element is in an iframe - the element might be below an iframe and thus inaccessible. Try using the "switchTo" function which will enable you to switch to the iframe and access the element.

if you tried all this and still got an error, then follow this steps:
(this module enables a user to control the mouse and keyboard by writing a simple module. By using this module you can be able to right click, left click and drag on screen using code)
-pip install pyautogui and import it
-call python on the terminal by typing py and pressing enter.
-import pyautogui(on terminal)
- using cursor cordinates, find the point you want to be clicked and record on paper or memorize it.
Disadvantages of this method
2. its tedious to record coordinates
3. May fail to work in different computers because of screen size
i was trying to create a code that would help me increase my Instagram followers but got stuck with this error. This error might also be occurring because its against Instagram's policy to use bots to gain followers so Instagram may have made its interface difficult to be accessed by bots

leave a tip
btc address(bitcoin network) : 18Le59m82Z4RRTEH8kNDeNVFzXzVnxH6Se
usdt(TRC20) : TNL29JfK8Xx6boDZ54PqWwTKTxs4k6Z3cj
Рекомендации по теме
Комментарии
Автор

how much is your experience in selenium?

vickykhan
Автор

the element that you assigned to selenium seems belongs to a personal account, which means it may be changed for each account.

satansatantansatan
Автор

sometimes the profile is disabled, and it doesn't find the xPaTH, I would like it to ignore it and load the next page (profile)

patrickandrey
Автор

When i wrote ( displayMousePosition )
It says ( The pillow package is required to use this function)

oker