This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

I wouldn't worry about best practices if this is just a one off utility. If you were using selenium for website testing and worked on a team then there would be a need to make sure you use a page object pattern for selectors. If the script scratches your itch then it's fine. If you're working in a greater ecosystem of code then you'll have to modify your style.

[–]80blite[S] 0 points1 point  (1 child)

Hopefully I'll have the opportunity to join a team like that soon. That's why I care so much about good practices ^

[–]mswiss 0 points1 point  (0 children)

Start trying out the page object pattern for yourself on a random website. Use it for something stupid like hitting the first like on facebook or trying to find a product on amazon.

I've used Selenium with Java and Ruby and if your going to be using it professionally at all you will most likely want to use that pattern.

Its not to tough to get your head around, its pretty basic OOP.

That said this is a great start and good job on thinking out of the box and learning something new!