from selenium import webdriver
import time
import math

def calc(x):
  return str(math.log(abs(12*math.sin(int(x)))))




link = "http://suninjuly.github.io/redirect_accept.html"
browser = webdriver.Chrome()
browser.get(link)

button = browser.find_element_by_class_name("trollface")
button.click()

new_window = browser.window_handles[1]
first_window = browser.window_handles[0]
browser.switch_to.window(new_window)


x_element = browser.find_element_by_id("input_value")
x = x_element.text
y = calc(x)

answer = browser.find_element_by_id("answer")
answer.send_keys(y)

button2 = browser.find_element_by_tag_name("button")
button2.click()
f68b7cb8a6f2604305a1e096e3233256bca5c1d8
<mask token>


def calc(x):
    return str(math.log(abs(12 * math.sin(int(x)))))


<mask token>

<mask token>


def calc(x):
    return str(math.log(abs(12 * math.sin(int(x)))))


<mask token>
browser.get(link)
<mask token>
button.click()
<mask token>
browser.switch_to.window(new_window)
<mask token>
answer.send_keys(y)
<mask token>
button2.click()

<mask token>


def calc(x):
    return str(math.log(abs(12 * math.sin(int(x)))))


link = 'http://suninjuly.github.io/redirect_accept.html'
browser = webdriver.Chrome()
browser.get(link)
button = browser.find_element_by_class_name('trollface')
button.click()
new_window = browser.window_handles[1]
first_window = browser.window_handles[0]
browser.switch_to.window(new_window)
x_element = browser.find_element_by_id('input_value')
x = x_element.text
y = calc(x)
answer = browser.find_element_by_id('answer')
answer.send_keys(y)
button2 = browser.find_element_by_tag_name('button')
button2.click()

from selenium import webdriver
import time
import math


def calc(x):
    return str(math.log(abs(12 * math.sin(int(x)))))


link = 'http://suninjuly.github.io/redirect_accept.html'
browser = webdriver.Chrome()
browser.get(link)
button = browser.find_element_by_class_name('trollface')
button.click()
new_window = browser.window_handles[1]
first_window = browser.window_handles[0]
browser.switch_to.window(new_window)
x_element = browser.find_element_by_id('input_value')
x = x_element.text
y = calc(x)
answer = browser.find_element_by_id('answer')
answer.send_keys(y)
button2 = browser.find_element_by_tag_name('button')
button2.click()

from selenium import webdriver
import time
import math

def calc(x):
  return str(math.log(abs(12*math.sin(int(x)))))




link = "http://suninjuly.github.io/redirect_accept.html"
browser = webdriver.Chrome()
browser.get(link)

button = browser.find_element_by_class_name("trollface")
button.click()

new_window = browser.window_handles[1]
first_window = browser.window_handles[0]
browser.switch_to.window(new_window)


x_element = browser.find_element_by_id("input_value")
x = x_element.text
y = calc(x)

answer = browser.find_element_by_id("answer")
answer.send_keys(y)

button2 = browser.find_element_by_tag_name("button")
button2.click()