It seems that after executing javascript:loadContent('ALL');
it takes sometime until the list is actually updated. You could try sleep
for a few seconds.
browser = Watir::Browser.new(:phantomjs)
browser.goto "http://www.englandgallery.com/artists.php"
browser.execute_script("javascript:loadContent('ALL');")
sleep 5
indexPage = Nokogiri::HTML(browser.html)
artists = indexPage.css('a.artistlink')
artists.each do |artist|
puts artist.text
end