HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
ftests.ftest_selenium_chrome Namespace Reference

Variables

int timeout = 10
 
string out_dir = "/tmp/00/"
 
bool macro_execute = True
 
string u = "http://www.nytimes.com/2015/06/18/us/politics/gop-is-wary-that-health-care-win-could-have-its-own-risks.html?hp&action=click&pgtype=Homepage&module=first-column-region&region=top-news&WT.nav=top-news&_r=0"
 
string out_file = "www.nytimes.com.html"
 
string exec_path = "../../bin/"
 
string driver_name = "chromedriver"
 
string driver_release = "_chrome50"
 
string error_msg = ""
 
 driver = None
 
string disable_setuid_sandbox = "--disable-setuid-sandbox"
 
 chrome_option = webdriver.ChromeOptions()
 
int error_code = 1
 
 log_types = driver.log_types
 
 log_list = driver.get_log('browser')
 
list entrances
 
 regex = re.compile(item[0])
 
 r = regex.search(error_msg)
 
 content_type = None
 
 charset = None
 
 attr = None
 
 items = regex.search(attr)
 
 html = driver.page_source
 
 cookies = driver.get_cookies()
 
string m = "function aaa(){location.replace('https://www.congress.gov/bill/114th-congress/senate-bill/1016/text');} return aaa();"
 
string m1 = "function bbb(){return 1;} return bbb();"
 
 r1 = driver.execute_script(m1)
 
 html_macro = driver.page_source
 
 f = open(out_dir + out_file + "_macro", "w")
 

Variable Documentation

◆ attr

ftests.ftest_selenium_chrome.attr = None

Definition at line 167 of file ftest_selenium_chrome.py.

◆ charset

ftests.ftest_selenium_chrome.charset = None

Definition at line 166 of file ftest_selenium_chrome.py.

◆ chrome_option

ftests.ftest_selenium_chrome.chrome_option = webdriver.ChromeOptions()

Definition at line 116 of file ftest_selenium_chrome.py.

◆ content_type

string ftests.ftest_selenium_chrome.content_type = None

Definition at line 165 of file ftest_selenium_chrome.py.

◆ cookies

ftests.ftest_selenium_chrome.cookies = driver.get_cookies()

Definition at line 208 of file ftest_selenium_chrome.py.

◆ disable_setuid_sandbox

string ftests.ftest_selenium_chrome.disable_setuid_sandbox = "--disable-setuid-sandbox"

Definition at line 115 of file ftest_selenium_chrome.py.

◆ driver

ftests.ftest_selenium_chrome.driver = None

Definition at line 93 of file ftest_selenium_chrome.py.

◆ driver_name

string ftests.ftest_selenium_chrome.driver_name = "chromedriver"

Definition at line 90 of file ftest_selenium_chrome.py.

◆ driver_release

string ftests.ftest_selenium_chrome.driver_release = "_chrome50"

Definition at line 91 of file ftest_selenium_chrome.py.

◆ entrances

list ftests.ftest_selenium_chrome.entrances
Initial value:
1 = [
2  (r"(.*)net::ERR_NAME_NOT_RESOLVED(.*)", 10),
3  (r"(.*)net::ERR_TOO_MANY_REDIRECTS(.*)", 11),
4  (r"(.*)403 \(Forbidden\)(.*)", 403),
5  (r"(.*)404 \(Not Found\)(.*)", 404),
6  (r"(.*)500 \(Internal Server Error\)(.*)", 500),
7  (r"(.*)net::(.*)", 520)]

Definition at line 148 of file ftest_selenium_chrome.py.

◆ error_code

int ftests.ftest_selenium_chrome.error_code = 1

Definition at line 121 of file ftest_selenium_chrome.py.

◆ error_msg

string ftests.ftest_selenium_chrome.error_msg = ""

Definition at line 92 of file ftest_selenium_chrome.py.

◆ exec_path

string ftests.ftest_selenium_chrome.exec_path = "../../bin/"

Definition at line 88 of file ftest_selenium_chrome.py.

◆ f

ftests.ftest_selenium_chrome.f = open(out_dir + out_file + "_macro", "w")

Definition at line 220 of file ftest_selenium_chrome.py.

◆ html

ftests.ftest_selenium_chrome.html = driver.page_source

Definition at line 207 of file ftest_selenium_chrome.py.

◆ html_macro

ftests.ftest_selenium_chrome.html_macro = driver.page_source

Definition at line 218 of file ftest_selenium_chrome.py.

◆ items

ftests.ftest_selenium_chrome.items = regex.search(attr)

Definition at line 173 of file ftest_selenium_chrome.py.

◆ log_list

ftests.ftest_selenium_chrome.log_list = driver.get_log('browser')

Definition at line 141 of file ftest_selenium_chrome.py.

◆ log_types

ftests.ftest_selenium_chrome.log_types = driver.log_types

Definition at line 139 of file ftest_selenium_chrome.py.

◆ m

string ftests.ftest_selenium_chrome.m = "function aaa(){location.replace('https://www.congress.gov/bill/114th-congress/senate-bill/1016/text');} return aaa();"

Definition at line 214 of file ftest_selenium_chrome.py.

◆ m1

string ftests.ftest_selenium_chrome.m1 = "function bbb(){return 1;} return bbb();"

Definition at line 215 of file ftest_selenium_chrome.py.

◆ macro_execute

bool ftests.ftest_selenium_chrome.macro_execute = True

Definition at line 29 of file ftest_selenium_chrome.py.

◆ out_dir

string ftests.ftest_selenium_chrome.out_dir = "/tmp/00/"

Definition at line 28 of file ftest_selenium_chrome.py.

◆ out_file

string ftests.ftest_selenium_chrome.out_file = "www.nytimes.com.html"

Definition at line 35 of file ftest_selenium_chrome.py.

◆ r

ftests.ftest_selenium_chrome.r = regex.search(error_msg)

Definition at line 157 of file ftest_selenium_chrome.py.

◆ r1

ftests.ftest_selenium_chrome.r1 = driver.execute_script(m1)

Definition at line 217 of file ftest_selenium_chrome.py.

◆ regex

ftests.ftest_selenium_chrome.regex = re.compile(item[0])

Definition at line 156 of file ftest_selenium_chrome.py.

◆ timeout

int ftests.ftest_selenium_chrome.timeout = 10

Definition at line 27 of file ftest_selenium_chrome.py.

◆ u

string ftests.ftest_selenium_chrome.u = "http://www.nytimes.com/2015/06/18/us/politics/gop-is-wary-that-health-care-win-could-have-its-own-risks.html?hp&action=click&pgtype=Homepage&module=first-column-region&region=top-news&WT.nav=top-news&_r=0"

Definition at line 34 of file ftest_selenium_chrome.py.