lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
506 stars 115 forks source link

How can I automate clicking these elements? #435

Closed kevinmcfarlane closed 6 years ago

kevinmcfarlane commented 6 years ago

JobServe job search

If you look at the dropdowns for "Summary View" or "20 Jobs Per Page" or "Best Match." If you mouse over then the dropdowns become available and you can select something. I tried writing hover "Best Match"hoping I could then click on an element. But that does nothing.

Any ideas?

lefthandedgoat commented 6 years ago
hover "#viewSelect"
click "#lkPreview"

This worked for me. This site does not use standard Select/option tags so it makes it more challenging.

kevinmcfarlane commented 6 years ago

Thanks Chris. The one I was actually interested in was the Best Match one. I tried your example and it worked. I then tried mine and it did work but there was a delay. I then tried it again and it timed out. At some point yesterday this was what I was getting. I then tried yours again and there was a long delay but it did eventually kick in. Is this something you can control for?

lefthandedgoat commented 6 years ago

Is the delay in the rendering of the drop down?

Its not really something that I can control, they wrote their site in a really strange way.

kevinmcfarlane commented 6 years ago

Is the delay in the rendering of the drop down?

Yes. No worries. I think the JobServe site could do with a revamp to be honest. But for a job seeker they do seem to offer the best in terms of overall features, despite frustrations!

Anyway, I'm just experimenting with Canopy right now.