I can hear you ask why this should be a problem. It was because the link looked as follows:
It turns out the usual WebDriver incantations along the lines of findElement(By.xpath("arbitrary-xpath")).getText() was returning nothing for the link's text. I looked around for a while and found that the only solution I had was to look things up via Javascript seeing as there were no ids to fallback on.
In the end it worked out that document.evaluate became the saviour of the day, since it allowed me to make xpath queries on a document. The result is a java step definition and cucumber feature file that look as follows:
UPDATE: Changed the step definition file so that the xpath lookup is done in WebDriver instead of in the javascript seeing as xpath lookups cannot be relied upon in Internet Explorer.
I suppose you could argue that the html could be changed to be better. True, but atimes that might not be an option. The purists will argue as they do here that it isn't a feature that should be provided by WebDriver but I think it would help to have a way of traversing the DOM once you have looked up an element. I should like to read about other creative solutions to a problem of this nature.
66 comments:
buy tramadol online tramadol 50 mg 4 times a day - tramadol apap 37.5 dosage
xanax online what is the lowest dose of xanax - drug interactions dramamine xanax
generic xanax withdrawal symptoms xanax use - xanax overdose wiki
buy tramadol online using tramadol withdrawal opiates - ultram vs tramadol generic
xanax online xanax overdose seizures - xanax online pharmacy overnight
generic xanax xanax recreational use grasscity - xanax bars long system
buy tramadol tramadol 50mg ndc - ultram side effects withdrawal
buy generic tramadol tramadol dosering - tramadol hcl 50 mg tablet r&s
xanax buy buy xanax tijuana - xanax bars 93 1003
buy tramadol online tramadol 50 mg a normal dose - tramadol overdose cats
buy cheap tramadol tramadol for dogs side effects - tramadol for dogs side effects panting
xanax online xanax online 2mg - high does xanax get you
buy tramadol online how can i buy tramadol online - overdose symptoms for tramadol
buy generic xanax online generic xanax 0.25 - xanax cost
xanax online best website to order xanax - buy xanax philippines
buy tramadol no prescription best place buy tramadol online reviews - can order tramadol online
is it illegal to buy xanax online high from xanax bars - does xanax show up on probation drug test
generic xanax xanax bars youtube - xanax dosage guidelines
buy carisoprodol buy carisoprodol cod - carisoprodol 350 mg listaflex
buy tramadol online cheap buy tramadol online no prescription usa - tramadol hcl 50 mg dosage
xanax online alprazolam 2mg generic xanax - xanax and alcohol blackout
buy carisoprodol carisoprodol drug uses - carisoprodol 350 mg tab qualitest
buy tramadol online tramadol 100 mg withdrawal - tramadol no prescription next day
where to buy cialis online no prescription generic cialis tadalafil - cialis recommended daily dose
generic xanax drug interactions xanax and benadryl - drug test kits xanax
buy cialis online can buy real cialis online - viagra or cialis online
cialis online cialis online usa pharmacy - cialis informacion en espanol
buy cialis online cialis online mexico - price for cialis 5mg
cialis online cialis goes generic - cialis free trial
buy cialis online buy legit cialis online - generic cialis us online
buy xanax bars online xanax bars 15 - xanax side effects women
buy cialis online cialis tadalafil reviews - order cialis online prescription
xanax online generic xanax thailand - xanax + 1 mg per day
buy alprazolam can xanax overdose fatal - 1mg xanax night
buy cialis with dapoxetine cialis online pharmacy usa - buy cialis online no prescription
buy cialis generic buy cialis online with american express - order brand cialis online
learn how to buy tramdadol buy tramadol order cheap tramadol online - tramadol dosage indications
http://landvoicelearning.com/#51438 tramadol hcl like - tramadol canadian pharmacy no prescription
buy tramadol tramadol narcotic - buy tramadol 50mg online
http://landvoicelearning.com/#30896 tramadol 821 - buy tramadol 200mg online
learn how to buy tramdadol tramadol purchase online no prescription - tramadol for dogs 10 mg
buy tramadol tramadol abuse - tramadol hydrochloride online
buy tramadol tramadol vs hydrocodone dosage - buy cheap tramadol overnight
http://www.site.com - [url=http://www.site.com]site[/url] site
site
buy tramadol tramadol with acetaminophen high - tramadol withdrawal weight loss
buy tramadol online cheap tramadol withdrawal joint pain - best website buy tramadol
buy tramadol online get over tramadol withdrawal - tramadol 50 mg price per pill
http://reidmoody.com/#49853 ativan dosage for sleep - ativan drip alcohol withdrawal
ways to buy ativan online ativan side effects in adults - ativan side effects in adults
http://reidmoody.com/#92465 ativan vs xanax fear flying - lorazepam 1mg street value
buy xanax online xanax bars online no prescription - xanax withdrawal time period
ways to buy ativan online buy lorazepam online with mastercard - lorazepam 1mg how to take
buy tramadol online tramadol hcl 30 - can you order tramadol online
buy xanax online xanax generic side effects - xanax for anxiety reviews
buy tramadol online tramadol for dogs addictive - tramadol 50mg (generic ultram)
buy tramadol online cyclobenzaprine and tramadol high - best buy tramadol
buy xanax online death by xanax overdose - many 2mg xanax get high
generic xanax overdose by xanax - xanax drug screen
order alprazolam xanax 93833 - xanax 0.5
Youг own artіcle has proνen helpful to
me personally. It’s verу infοrmative and you really are nаturally reаlly educatеd in this field.
You hаve gоt opened my personal еyеs for you to varying νiewѕ
on this speсific topіс with interesting
and sound wrіtten content.
Also visit my website :: meridia
Your own post hаs confirmed hеlpful to me pеrsonally.
It’s reаlly іnformative and you're certainly extremely well-informed in this field. You get popped my personal eye to be able to numerous thoughts about this kind of matter with intriquing, notable and sound articles.
Also visit my blog post ... Buy Valium
order topiramate online [url=http://www.topamaxrxonline.net/]Topamax For Sale[/url] generic topiramate
Incredible story there. What happened after? Take care!
Feel free to surf to my website; www.Wrenemerson.Com
Great Post and Comment
http://gol.ag/ - http://gol.ag/ - gol gol
top gol- Domain-top gol-top goal-domain gol-domain goal-ads gol-Classifield Sit
http://mrfw.com/ - http://mrfw.com/ - buy and sell item buy and sell item
Fantastic ,super design good blog splendid design -Buy Sell--super design
Item For Sale in Mrfw:Buy used websit,domain sit,Computers,Mobiles
buy and sell item ,business , The very best place to Buy and Sell anything, whit mrfw.com and great new auctions buy sell are posted everyday.
http://mrfw.com
buy and sell item
http://jqqr.com/ - http://jqqr.com/ - Business Directory Business Directory
Fantastic splendid design business directory-submit you r sit-Increase your Traffic sit-http://Jqqr.com-thank you to sharing
Stand submit yo ur sit ! Sign up now for a free listing in the World Best Business Directory and improve and increase traffic your online presence whit Jqqr.com
http://jqqr.com
business directory
Great Comment and Great Post , blog , you can see my sit if you want ;thank alot Best Booking-http://hotelclic.com-Hotel Club-Best Hotel-Top Hotel-Hotel Club-HotelClic-thank you to sharing.
Super Fantastic Comment and Great Post , blog , you can see my sit if you want ;thank alot top credit-Best Credit-Good Credit-Domain-http://credit.sa.com-thank you to sharing
Gгeetingѕ from Carolіna!
I'm bored to tears at work so I decided to check out your website on my iphone during lunch break. I really like the info you present here and can't wait tο
takе a lοοk when I get home. I'm surprised at how quick your blog loaded on my mobile .. I'm not even
using WIFI, just 3G .. Anyways, amazing sitе!
Fеel free to νiѕit my wеb blog :: DiamondLinks.net
[url=http://my.moverapid.com/neggram][img]http://my.moverapid.com/promo.gif[/img][/url]
[size=4][url=http://my.moverapid.com/neggram][b][color=blue]Buy [/color][color=red]Neggram[/color][color=blue] ONLINE - click here![/color][/b][/url][/size]
Post a Comment