• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:31
CEST 15:31
KST 22:31
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
SC4ALL II announced - $10,000 prize pool, Dec 5-63PIG STY FESTIVAL 8.0! (13 - 23 August)8Neeb returns to progaming; rejoins ONSYDE14Weekly Cups (July 20-26): Early returns on 5.0.16b8IntoTheTV X SOOP SC2 League : Weekly & Monthly5
StarCraft 2
General
SC4ALL II: StarCraft 2 Player Announcement 1/8 Balance hotfix patch 5.0.16b (July 16) Neeb returns to progaming; rejoins ONSYDE Clem: "I don't have that much hope in Blizzard" Weekly Cups (July 20-26): Early returns on 5.0.16b
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament SC4ALL II announced - $10,000 prize pool, Dec 5-6 PIG STY FESTIVAL 8.0! (13 - 23 August) IntoTheTV X SOOP SC2 League : Weekly & Monthly Crank Gathers Season 4: BW vs SC2 Team League
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 536 Railroad Switch The PondCast: SC2 News & Results Mutation # 535 Assembly of Vengeance Mutation # 534 Burning Evacuation
Brood War
General
Making an Online Broodwar Manager Game ASL22 General Discussion BW General Discussion BW Drama: Terror's Debt Incident + C9 disbanding BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Escore Tournament - Season 3 [Megathread] Daily Proleagues BSL LAN Party - Kraków 29-30 August - OPEN SIGNUPS 2v2v2v2 Tournament
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates Odyssey Mineral Stack Saturation PvT advise for noobs
Other Games
General Games
Beyond All Reason Nintendo Switch Thread Path of Exile ZeroSpace Early Access is Now Live! Stormgate/Frost Giant Megathread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
Artificial Intelligence Thread European Politico-economics QA Mega-thread US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread Series you have seen recently... [Req][Books] Good Fantasy/SciFi books
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023 McBoner: A hockey love story
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
What is a Gamer?
TrAiDoS
Hello guys!
LIN1s
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
Customize Sidebar...

Website Feedback

Closed Threads



Active: 7744 users

XPath / Autopager Question - Page 2

Blogs > JeeJee
Post a Reply
Prev 1 2 All
onmach
Profile Blog Joined March 2009
United States1241 Posts
Last Edited: 2009-12-08 16:37:03
December 08 2009 16:36 GMT
#21
I noticed the same thing. Annoying.

The reason (I think) is because it loads the page when it sees the first next link on the page. The first link it sees is at the very top of the thread, so it figures you are at the bottom of the page. Since both the top and bottom next links are identical, I'm having trouble telling xpath to get the second one with the // search type.

edit: Here's a fix:

(//a[text() = 'Next' and contains(@title, 'Next Page') and contains(@href, 'view')])[2]


This selects the second next link only. The other thing I had to do was in site manager in the advanced tab for your rule, select 0 for the minimum preloaded page count. I think it defaults to one preloaded page, which causes an auto load.
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
December 08 2009 19:22 GMT
#22
On December 09 2009 01:36 onmach wrote:
I noticed the same thing. Annoying.

The reason (I think) is because it loads the page when it sees the first next link on the page. The first link it sees is at the very top of the thread, so it figures you are at the bottom of the page. Since both the top and bottom next links are identical, I'm having trouble telling xpath to get the second one with the // search type.

edit: Here's a fix:

(//a[text() = 'Next' and contains(@title, 'Next Page') and contains(@href, 'view')])[2]


This selects the second next link only. The other thing I had to do was in site manager in the advanced tab for your rule, select 0 for the minimum preloaded page count. I think it defaults to one preloaded page, which causes an auto load.


man
you rule
:D
tyvm..browsing TL got more addictive with a lot less clicking... (is that a good thing? :s)
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
WardiTV Summer Champion…
11:00
Summer Cup Playoffs
IntoTheiNu 950
WardiTV928
TKL 338
TaKeTV 267
Rex140
EmSc2Tv 52
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 338
Rex 140
ProTech82
EmSc Tv 52
BRAT_OK 40
MindelVK 14
StarCraft: Brood War
Britney 40761
Calm 6994
firebathero 833
Mini 739
EffOrt 670
Soma 483
Larva 383
BeSt 363
Rush 268
Stork 241
[ Show more ]
Last 161
ggaemo 160
hero 150
Hyun 111
Pusan 106
Sharp 82
ToSsGirL 58
sorry 39
Sexy 36
ZergMaN 16
IntoTheRainbow 11
Rock 9
Icarus 4
Dota 2
Gorgc11295
Dendi787
canceldota68
febbydoto10
XcaliburYe3
Counter-Strike
fl0m5428
byalli311
Other Games
singsing1865
B2W.Neo940
Beastyqt544
FrodaN512
crisheroes269
Fuzer 141
ToD68
Liquid`VortiX48
QueenE42
DeMusliM28
Organizations
StarCraft 2
EmSc Tv 52
StarCraft: Brood War
lovetv 14
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH335
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV568
League of Legends
• Jankos1595
• Nemesis347
Upcoming Events
PiG Sty Festival
10h 29m
Afreeca Starleague
14h 29m
RSL Revival
19h 29m
Clem vs Serral
herO vs Rogue
WardiTV Summer Champion…
22h 29m
WardiTV Weekly
1d 21h
Sparkling Tuna Cup
2 days
PiGosaur Cup
3 days
Replay Cast
3 days
Kung Fu Cup
3 days
Replay Cast
4 days
[ Show More ]
The PondCast
4 days
Replay Cast
5 days
IntoTheTV X SOOP
5 days
RSL Revival
6 days
Liquipedia Results

Completed

Escore Tournament S3: W5
CranK Gathers Season 4: BW vs SC2 Team League
Eternal Conflict S2 Finale

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
ASL Season 22: Qualifier #1
RSL Revival: Season 6
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026

Upcoming

ASL Season 22: Qualifier #2
K-JUNGMAN
Acropolis #5
Escore Tournament S3: W6
Escore Tournament S3: W7
Escore Tournament S3: W8
CSLAN 4
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
PiG Sty Festival 8.0
Thunderpick World Champ.
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.