-
Problem DescriptionWhen using Code Examplefrom seleniumbase import SB
def generate_response(prompt):
with SB(uc=True) as sb:
sb.open("https://build.nvidia.com/deepseek-ai/deepseek-r1-0528")
# Slow with large HTML text (prompt2), fast with short text (prompt1)
sb.type("textarea.c-jOMmSw", prompt) # Delay occurs here for big HTML
# ... additional logic for handling responses
prompt1 = "Your question here" # Fast insertion
prompt2 = "```<div><p>...</p></div>```" # Large HTML content - slow insertion Expected vs Actual Behavior
Environment
QuestionAre there way to accelerate |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could try |
Beta Was this translation helpful? Give feedback.
You could try
sb.cdp.set_value(selector, text)
ifsb.cdp.type(selector, text)
isn't fast enough for you. Keep in mind that UC Mode / CDP Mode is about bypassing bot-detection, not about going as quickly as possible (which makes you look like a bot).