Thursday, May 17, 2018

Page Factory in C# - Dealing with Frames and Latency

One of the issues we've been having with our new C# framework that utilizes PageFactory is that the pages did not automatically check to see if they were loaded with an IsLoaded() type method. We tried various schemes to alleviate this, but in the end after a lot of online searches I discovered that the PageFactory.InitElements() method can be overloaded in multiple ways:

This allowed us to implement the following InitElements() in our framework:

PageFactory.InitElements(DeviceMainTab, new RetryingElementLocator(Driver.SwitchToInnerFrames("main>tabPage"), AutomationConstants.DEFAULT_OBJECT_TIMEOUT));

The first argument is the object or class that is being initialized, the second parameter is another method that implements the RetryingElementLocator class. We gave it the Driver.SwitchToInnerFrames so that it would always switch to that frame set on that page in our application in order to find the defined elements.

The second parameter to RetryingElementLocator() is just a timeout, which we set to a constant that is 20 seconds.

This eliminated the majority of the latency and subsequent Element Not Found errors we were experiencing and was much simpler than trying to implement LoadableComponent pattern which we found did not work well with PageFactory.

Monday, April 30, 2018

Thompson Falls

We had dinner with my mother at Top 'O The Lake in Guntersville on Saturday afternoon, and when we finished we still had several hours of daylight left so I pulled up Google Maps on my phone and searched for "waterfall".  It brought up several that were nearby and I picked Thompson Falls on Mink Creek and we headed that way. It was about a 15 minute drive and the "road" to turn off to get to the falls is only marked with a No Dumping sign.

If you go here, take a vehicle with high clearance and you shouldn't have any trouble driving right up to the old bridge that is just above the falls. The road is bumpy but is mostly rock so there shouldn't be any issue with getting stuck. 

We weren't ready to do any real hiking since I had my new sneakers on and Jack only had flip-flops, but there is a trail that leads down to the lower two cataracts.

Wednesday, January 25, 2017

Two Years?

Heff! It's been two years since I updated this blog. I miss the old days of the Blog Wars. I even miss Big Bill. Ah well, life goes on.

I'm a grandfather now. My little Leo is a little over 12 weeks old now. I'm still incredibly fat, but I'm also working on that.

This week also featured the passage of a small kidney stone on Tuesday morning. It started late Monday night and I finally passed it about 8:30 the next morning. It must have been pretty small since I couldn't find it afterwards in the bowl, but I wasn't looking too hard.

Saturday, February 07, 2015

Tension, Apprehension, and Dissension

Last night I finished reading The Demolished Man by Alfred Bester for probably the third or fourth time in my life. For some reason I never really remember all the details of this book when I start reading it again. It's like a Level 1 has gone in and "demolished" that part of my memory. As always, it was an excellent read. I'll need to pick up The Stars My Destination for another reread sometime soon.

Thursday, September 12, 2013

Kaijudo Tournament #2

I showed up at the Game Cave again tonight for the weekly Kaijudo tournament.  I was using the fire/nature rush deck again, with a few more twinks made to it.  I won the first round 2-0 after teaching someone how to play.  In the next round I came up against a tough control deck but managed to win the second game after I got some cheap cards out quick.  I still lost 2-1.

In the third round I played an all Fire deck for the first time and lost quickly to some Drakon Evolution cards that he managed to summon fairly rapidly.

So I ended up coming in #7 out of 12 again.  Fun night and Dave at the Game Cave even gave me a free demo deck that should help beef up my rush deck some more.

Wednesday, September 04, 2013

Kaijudo Tournament #1

So last week I bought Jack and I each a starter deck for Kaijudo, which is a recent game put out by Wizards of the Coast, who also produce Magic: The Gathering.  A new gaming store called The Game Cave has recently opened up very close to my house, so I decided to head down there tonight and check out the Kaijudo tournament.

I took my Bull Rush deck, which is primarily an aggressive deck featuring the Fire and Nature civilizations.  It was mostly just the starter deck, but I borrowed a card from Jack's deck and had a few cards from a booster pack also in it.  I wasn't expecting to do well, since most of the guys there have worked diligently on building good decks, but I was hoping to win a few games if the right cards came out early for me.

Round 1

Twelve players showed up tonight, and in the first round I played a guy named E, who eventually won the tournament.  E had a deck that he said had about $250 worth of cards in it and was primarily a Control type deck.  I didn't really draw many of my cheap creature cards very early, so after about seven turns it was quickly obvious that I was going to lose.  I managed to get him down to one shield in the first game, but since he had a lot of gold cards he just restored them and then brought out several very large cards that I literally had no chance to beat or defend against.  I lost 0-2 in Round 1.

Round 2

For round two I played my friend Richard, who is also a relative novice at the game.  He was playing a combination of Water and Darkness cards.  Unfortunately, most of his cards required 5 mana or more, so when my cheap red and green attack cards started showing up early there was little he could do to defend against them.  I won 2-0 in Round 2.

Round 3

In Round three I played a guy named Nate who also had a fairly expensive deck that featured a lot of Water and Darkness cards.  I lost the first game pretty quickly, but managed to get some good draws early and beat him on the second game.  I lost the third game fairly quickly though.  I lost 1-2 in Round 3.

We were going to do four rounds, but the software wouldn't let Dave do that so we stopped at three.  I came in 7th place out of 12 players, so not too bad for what was mostly a basic deck.  When it was over Dave from the Game Cave had each player choose a booster pack type and then he opened them all and put the rarest card on top of each stack.  Then we chose from 1st to last which stack we wanted to go home with.  E the player from the first round also gave me some common cards from a pack he had opened earlier.

All in all I had a lot of fun for 4 bucks.  The game plays fast and although you can spend a lot of money on it, I had a lot of fun for basically a 12 dollar investment.  I look forward to tweaking my deck to be even more aggressive and see what I can do with it.

Monday, September 02, 2013

Legendary: Marvel Deck Building Game

I showed up at the new gaming store in Hermitage called The Game Cave this past Saturday and thanks to my friend David Lowry I got to play Legendary: Marvel Deckbuilding Game for the first time, which also included the Dark City expansion.

I'm not normally much of a card game person, but it's hard to avoid them these days.  I did enjoy this game however, and five of us managed to beat the Red Skull in a close call. I scored enough points to come in fourth.

I haven't played it enough to write up a full review of the game yet, but I did enjoy it a lot and look forward to playing it again soon.