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

Method submit

seleniumbase/core/sb_cdp.py:1203–1215  ·  view source on GitHub ↗
(self, selector)

Source from the content-addressed store, hash-verified

1201 self.loop.run_until_complete(self.page.sleep(0.025))
1202
1203 def submit(self, selector):
1204 submit_script = (
1205 """elm = document.querySelector('%s');
1206 const event = new KeyboardEvent("keydown", {
1207 key: "Enter",
1208 keyCode: 13,
1209 code: "Enter",
1210 which: 13,
1211 bubbles: true
1212 });
1213 elm.dispatchEvent(event);""" % selector
1214 )
1215 self.loop.run_until_complete(self.page.evaluate(submit_script))
1216
1217 def evaluate(self, expression):
1218 """Run a JavaScript expression and return the result."""

Callers 15

verzendenMethod · 0.45
soumettreMethod · 0.45
inviareMethod · 0.45
enviarMethod · 0.45
제출Method · 0.45
отправитьMethod · 0.45
を提出すMethod · 0.45
提交Method · 0.45
enviarMethod · 0.45
raw_multi_sb.pyFile · 0.45
raw_multi_async.pyFile · 0.45

Calls 1

evaluateMethod · 0.45

Tested by 7

test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36