MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Initialize

Method Initialize

cpp/iedriver/Script.cpp:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void Script::Initialize(IHTMLDocument2* document,
60 const std::wstring& script_source,
61 const unsigned long argument_count) {
62 LOG(TRACE) << "Entering Script::Initialize";
63
64 this->script_engine_host_ = document;
65 this->source_code_ = script_source;
66 this->argument_count_ = argument_count;
67 this->current_arg_index_ = 0;
68
69 // Calling vector::resize() is okay here, because the vector
70 // should be empty when Initialize() is called, and the
71 // reallocation of variants shouldn't give us too much of a
72 // negative impact.
73 this->argument_array_.resize(this->argument_count_);
74}
75
76void Script::AddArgument(const std::string& argument) {
77 LOG(TRACE) << "Entering Script::AddArgument(std::string)";

Callers 12

ScriptMethod · 0.95
OnBrowserReattachMethod · 0.45
DocumentHostMethod · 0.45
IsProtectedModeMethod · 0.45
SetFocusToBrowserMethod · 0.45
InitializeSessionMethod · 0.45
SetProxySettingsMethod · 0.45
SetInputSettingsMethod · 0.45
SimulateActionsMethod · 0.45
SimulateActionsMethod · 0.45

Calls 1

LOGClass · 0.50

Tested by

no test coverage detected