File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 14
14
sb .gui_drag_and_drop ("img#logo" , "div#drop2" )
15
15
sb .nested_click ("iframe#myFrame3" , ".fBox" )
16
16
sb .sleep (2 )
17
+ sb .driver .stop ()
Original file line number Diff line number Diff line change 30
30
sb .sleep (2 )
31
31
sb .cdp .highlight_overlay ("div.pokemon-ability-info" )
32
32
sb .sleep (2 )
33
- sb .cdp .click ('a[href="https://www.pokemon.com/us/play-pokemon/"]' )
34
- sb .sleep (0.6 )
35
- sb .cdp .click ('h3:contains("Find an Event")' )
36
- location = "Concord, MA, USA"
37
- sb .cdp .type ('input[data-testid="location-search"]' , location )
38
- sb .sleep (1.5 )
39
- sb .cdp .click ("div.autocomplete-dropdown-container div.suggestion-item" )
40
- sb .sleep (0.6 )
41
- sb .cdp .click ('img[alt="search-icon"]' )
42
- sb .sleep (2 )
43
- events = sb .cdp .select_all ('div[data-testid="event-name"]' )
44
- print ("*** Pokemon events near %s: ***" % location )
33
+ sb .cdp .open ("https://events.pokemon.com/EventLocator/" )
34
+ sb .sleep (3 )
35
+ sb .cdp .click ('button span:contains("Premier Events")' )
36
+ sb .sleep (1 )
37
+ events = sb .cdp .select_all ('div[class="event-info"]' )
38
+ print ("*** Upcoming Premier Events for Pokémon: ***" )
45
39
for event in events :
46
40
print ("* " + event .text )
47
41
sb .sleep (2 )
You can’t perform that action at this time.
0 commit comments