1

When I'm trying to open a web page, its opening in a new chrome window stripped of all the extensions and modules. I'm not able to emulate the certain behavior of the website using selenium chrome browser window but I'm able to do the same thing in a normal chrome window without any issues.

from selenium import webdriver

driver = webdriver.Chrome(r'C:\chromedriver.exe')
driver.get("remote_worksplace_link")

id_box = driver.find_element_by_id('Enter user name')
id_box.send_keys('123456')
pass_box = driver.find_element_by_id('passwd')
pass_box.send_keys('123abc')
login_button = driver.find_element_by_id('Log_On')
login_button.click()

driver.implicitly_wait(2)

launch_button = driver.find_element_by_class_name('storeapp-icon ui-sortable-handle')
launch_button.click()

driver.implicitly_wait(5)

driver.close()

1 Answer 1

2

all extentions has its .crx file just you need to add those path

chrome_options = Options()
chrome_options.add_extension('path_to_extension')

driver = webdriver.Chrome(executable_path=executable_path, chrome_options=chrome_options)
driver.get("url")
driver.quit()
Sign up to request clarification or add additional context in comments.

4 Comments

I'm trying to work with Citrix receiver extension, but there isn't any particular path for it. stackoverflow.com/questions/51647363/…
that is impossible. every extension has .crx file
Thanks, I was able to locate the .crx file in C:\Program Files\Citrix\ICA Client\Chrome_Extension.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.