Close do window

0 votes

I have the following code

driver = webdriver.Chrome(executable_path=r'/home/ruben/Documentos/Robô_Neobux/chromedriver')

driver.get(Url)

driver.maximize_window()

time.sleep(2)


Login=driver.find_element_by_id("Kf1").send_keys(Nome_De_Utilizaor)

Login=driver.find_element_by_id('Kf2').send_keys(Passoword)

time.sleep(15)

Login=driver.find_element_by_id('botao_login')

Login.click()

time.sleep(10)

forex = driver.find_element_by_id('icon_6')

forex.click()

time.sleep(5)

forex = driver.find_element_by_id('i6')

forex.click()

time.sleep(35)

forex.close()

I want to use the close in forex but give me WebElement not fund and I have tried using send_keys (keys.CONTROl + "W") also does not help me close the page without the driver.quit or close

May 12 in Selenium by Ruben
• 120 points
142 views
So basically, your query is to know how to close the page without using driver.quit or close. Is that right?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I set the zoom level of Internet Explorer to 100% when using python _winreg

My qustion is, by default for testing ...READ MORE

answered Mar 30, 2018 in Selenium by nsv999
• 5,510 points
1,560 views
0 votes
2 answers

Handling new window using Selenium

You can try something like this too:  ...READ MORE

answered Aug 27, 2019 in Selenium by Abha
• 27,930 points
5,639 views
0 votes
1 answer

Where do I get the ChromeDriver.exe from? The download link isn't available

You can download the chromedriver.exe from this ...READ MORE

answered Apr 3, 2018 in Selenium by nsv999
• 5,510 points
7,482 views
0 votes
1 answer

Do we have Selenium IDE for Chrome (like Firefox does)?

Actually, very recently Chrome has come up ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,510 points
332 views
0 votes
1 answer

How do we use assert() in Selenium WebDriver?

So, for implementing Assert(), you need to ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,510 points
8,628 views
0 votes
1 answer

How do we use Gecko driver.exe with Selenium?

Recently Selenium launched v3 and if you ...READ MORE

answered Apr 7, 2018 in Selenium by nsv999
• 5,510 points
145 views
0 votes
1 answer

Handling JavaScript Alert window in Selenium WebDriver

You should try using waits for alerts ...READ MORE

answered Apr 10, 2018 in Selenium by ghost
• 1,790 points
1,294 views
0 votes
1 answer

How do i change the location where my file gets downloaded in Selenium Webdriver and firefox driver?

There are a couple of errors there. ...READ MORE

answered Apr 12, 2018 in Selenium by nsv999
• 5,510 points
3,312 views