Request to provide the details of how to integrate django app with selenium chrome web driver

34 views
Skip to first unread message

Dilipkumar Noone

unread,
Sep 30, 2019, 11:52:16 AM9/30/19
to Django users
I am new to Django.

I  have a requirement to develop a django application with the requirement as stated below:

1.Under one tab ,provide a button name "ApplyGSP"
2.click on "ApplyGSP" button should open a form ,which required below input from the user.

   a)model_no b)model_name c)os_version d)requested_time e)user f)from_sas_url g) to_sas_url etc.

3.once the user submitted the FORM with all the fields from step2, your app should open a browser with the user specified URL from f)from_sas_url field in step2.



 

Dilipkumar Noone

unread,
Sep 30, 2019, 11:58:43 AM9/30/19
to Django users
4.Perform few click operations using selenium webdriver.
   5.copy the list of records from f) to g)

Please provide your suggestion how to perform this task in a better way.

can i use celery application and launch the browser and perform the click operations using selenium webdriver ?
Is there any better way please suggest me.

Regards,
N.Dilip Kumar.   


 

Deep Sukhwani

unread,
Sep 30, 2019, 6:43:51 PM9/30/19
to django...@googlegroups.com
What exactly do you want to use celery for?

Using selenium webdriver the regular way should suffice here.
Regarding copying from one field and pasting into another, you might be able to work with .get_text() method in selenium to read text from one field, store it in a variable and then .send_keys() to write that text into another field.

Note: This is a good question for selenium community and you should consider posting it there or on Stack overflow with selenium webdriver tag

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/87eaa9b9-eccb-4f7c-87b3-3a6a2d6ee8b7%40googlegroups.com.

Dilipkumar Noone

unread,
Oct 1, 2019, 1:37:10 PM10/1/19
to Django users
Hi,

If i use selenium webdriver regular way in my django app, will it not cause time consuming to perform the automation task on chrome webdriver ?
So to save the time , can i launch browser and perform automation task using celery delay() method.

Regards,
N.Dilip Kumar.


On Tuesday, October 1, 2019 at 4:13:51 AM UTC+5:30, Deep Sukhwani wrote:
What exactly do you want to use celery for?

Using selenium webdriver the regular way should suffice here.
Regarding copying from one field and pasting into another, you might be able to work with .get_text() method in selenium to read text from one field, store it in a variable and then .send_keys() to write that text into another field.

Note: This is a good question for selenium community and you should consider posting it there or on Stack overflow with selenium webdriver tag

On Mon, Sep 30, 2019, 21:29 Dilipkumar Noone <n.d...@gmail.com> wrote:


On Monday, September 30, 2019 at 9:22:16 PM UTC+5:30, Dilipkumar Noone wrote:
I am new to Django.

I  have a requirement to develop a django application with the requirement as stated below:

1.Under one tab ,provide a button name "ApplyGSP"
2.click on "ApplyGSP" button should open a form ,which required below input from the user.

   a)model_no b)model_name c)os_version d)requested_time e)user f)from_sas_url g) to_sas_url etc.

3.once the user submitted the FORM with all the fields from step2, your app should open a browser with the user specified URL from f)from_sas_url field in step2.
4.Perform few click operations using selenium webdriver.
   5.copy the list of records from f) to g)

Please provide your suggestion how to perform this task in a better way.

can i use celery application and launch the browser and perform the click operations using selenium webdriver ?
Is there any better way please suggest me.

Regards,
N.Dilip Kumar.   


 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

Deep Sukhwani

unread,
Oct 2, 2019, 12:54:20 AM10/2/19
to django...@googlegroups.com
Still not clear on what is the automation task. From your original questions:

1.Under one tab ,provide a button name "ApplyGSP"
2.click on "ApplyGSP" button should open a form ,which required below input from the user.

   a)model_no b)model_name c)os_version d)requested_time e)user f)from_sas_url g) to_sas_url etc.

3.once the user submitted the FORM with all the fields from step2, your app should open a browser with the user specified URL from f)from_sas_url field in step2.
4.Perform few click operations using selenium webdriver.
   5.copy the list of records from f) to g)

These indicate that you want to perform a particular task using selenium.

What is the other task you are trying to run simultaneously for which you want to run the selenium job using celery.delay()?

My full understanding is: 
  • You will develop a Django application that meets the above requirements
  • That Django application will certainly be in running state (only then you will be able to perform visual automation on it)
  • You will then run a selenium job on the above running Django application.
  • Here, your Django app is running on a different process and you are triggering selenium job separately.
  • If on the other hand, the only reason you want to run a Django app is to do the selenium task and then shutdown the Django app altogether, you can put the whole thing in a single bash script which essentially:
    • Starts your Django application using gunicorn or direct call to runserver or whichever way you want it to run
    • Checks that the Django application is up and running
    • Triggers the Selenium flow
    • If selenium flow returns exit 0 - gets out and shuts down the Django application
Is the above correct expectation correct?

--
Regards
Deep L Sukhwani


To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3292dd2d-b5b7-4b65-8d67-8b3276e4f94f%40googlegroups.com.

Dilipkumar Noone

unread,
Oct 2, 2019, 5:46:27 AM10/2/19
to django...@googlegroups.com
Dear Deep L Sukhwani,

The below statement clarifies my doubt.
----------------------------------------------------------------------------------------------------------------------------------------------------
Here, your Django app is running on a different process and you are triggering selenium job separately.
----------------------------------------------------------------------------------------------------------------------------------------------------

Thanks & Regards.
N.Dilip Kumar.

Dilipkumar Noone

unread,
Oct 2, 2019, 1:14:22 PM10/2/19
to django...@googlegroups.com
Hi,

Can some one please share where to place a chrome driver [.exe] file in a django project which launches a webpage to perform click operations using selenium.

Please share any document or videos for the same,

Regards,
N.Dilip kumar.
Reply all
Reply to author
Forward
0 new messages