MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / get_next_var_name

Function get_next_var_name

seleniumbase/console_scripts/sb_objectify.py:213–219  ·  view source on GitHub ↗
(existing_names)

Source from the content-addressed store, hash-verified

211
212
213def get_next_var_name(existing_names):
214 base_name = "css_"
215 for i in range(1, 99999):
216 new_name = "%s%s" % (base_name, str(i))
217 if new_name not in existing_names:
218 return new_name
219 raise Exception("Out of range! (Selector name generation)")
220
221
222def process_test_file(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…