Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NoDriver] Element.send_keys() works unexpectedly #1870

Open
RobertAzovski opened this issue May 7, 2024 · 3 comments
Open

[NoDriver] Element.send_keys() works unexpectedly #1870

RobertAzovski opened this issue May 7, 2024 · 3 comments

Comments

@RobertAzovski
Copy link

RobertAzovski commented May 7, 2024

Hello. I faced an issue using NoDriver.

When I try to find an element via .find('Username', best_match=True) it succeed just 25-50% times on same page. 'Username' is a text of label for the input field, but the input field itself has #email` CSS selector.

Even after I started using .select('#email') it is not successful 100% but like 75% times.

When I try to send_keys('123456789') it cuts of a part of a text.

So final input will get like 1234 text, not all.

@geizzo
Copy link

geizzo commented Jun 3, 2024

hello i have some issue any solution?

@ultrafunkamsterdam
Copy link
Owner

ultrafunkamsterdam commented Jun 4, 2024

If it has #email , than there is only 1 of of it in the DOM, so you could use await tab.select('#email')
What is the site..... ? Some sites have very nifty shit in place to make it hard as possible.

@geizzo
Copy link

geizzo commented Jun 12, 2024

I have the issue on bet365.
I don't know if you know bet365, however in the step where you enter the amount to bet, I'll also show you the selector >>set_money = await page.select("body > div:nth-child(1) > div > div:nth -child(2) > div > div > div > div > div.bss-Footer > div.bss-Footer_DetailsContainer > div.bsf-StakeBox.bsf-StakeBox_MouseMode.bsf-StakeBox_Empty.bsf-StakeBox_Width410.bsf-StakeBox_Standard > div > div.bsf-StakeBox_StakeInput > div > div")
It finds the element correctly and if I try to pass the amount with set_money.send_keys("3") on the screen I see it passing it, but it is as if it were a simple text and on the web side the button next to "place bet" is not activated "
this is the website
https://www.bet365.com
image

below the screen where i insert manually the value
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants