Problem in sending code

Whenever I send the code to the code element using
code_element.send_keys(code)

Then, the page loads another page, also opens a window of Sphere Engine Website and opens the file explorer to upload a file

hey @amoghjalan2005 ,
check the link you are reverting too from click , i guess by mistake either you have chosen a wrong element or providing a wrong link to navigate on.

Kindly check that once.

Code chef Automation

This is the link to my notebook. I rechecked it but found no errors. The thing is whenever I pass just a string then the code works fine but when the file content is sent it is making this problem

Please reply it has been many days

hey @amoghjalan2005 ,
I am really sorry to be so late . I didn’t got notified about your message and hence wasn’t able to address you.
I just saw your code , though i am not getting why you are being redirected to different pages.
But for the task you need to do with this code , you will face some errors as because the way you are implementing requires some of a bit different things and approach.
Have a look at this code https://ide.codingblocks.com/s/325151.

As the code chef platform , there are different modes as IDE and Non-IDE , hence we need to change those first to submit our code in effective manner.
Try my code. and let me know if you get stuck .

I hope this helps you.
Thank You :slightly_smiling_face:.

I tried yours also but same problem is there
It redirects me somewhere else and even opens some applications on my laptop

hey @amoghjalan2005 ,
I am really sorry , but i dont know why this thing is happening with you as such. There are many other students too , but they faced any such problem .
You ca try re installing selenium , upgrading your chrome browser , use the latest chromedriver .
This is all i can suggest you.