Can't locate the "Log In" button

20 views
Skip to first unread message

AlistairR

unread,
Jun 6, 2023, 4:01:04 AM6/6/23
to Selenium Users
New to Selenium...

Any suggestions on how the locate the 'Log In' button on https://flylitchi.com/hub

I've tried various find_element calls, but without success.

It maybe I can't see the wood for the trees...!

ddlionx

unread,
Jun 6, 2023, 5:07:49 AM6/6/23
to seleniu...@googlegroups.com
This is just one big canvas element. A testability improvement you could hypothetically arrange with your peers is some kind of API to control the elements programmatically. That being said, I don't know what 'outcome' you would look for because that would also be taking place on a canvas element. 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/823a1900-a4d6-460d-813b-caf1115f778dn%40googlegroups.com.

Pulkit Sachdeva

unread,
Jun 6, 2023, 6:29:50 AM6/6/23
to seleniu...@googlegroups.com
You can try using cssSelector 

driver.findElement(By.cssSelector("a[id=loginbtn]").click();

Let me know if it works.

Thanks and regards
Pulkit Sachdeva
plkt...@gmail.com

IMG20230606154939.jpg
Reply all
Reply to author
Forward
0 new messages