Re: [Tutor] Open a Url in new tab and tab switching in IE using python and selenium

2015-05-12 Thread shweta kaushik
May 2015 00:15:39 +0100, Alan Gauld writes: > >On 05/05/15 19:22, shweta kaushik wrote: > >> Thanks Steve for the information. > >> I searched but was not able to find suitable forum to shoot this > question. > >> So posted here if anyone can help out. > >> &

Re: [Tutor] Open a Url in new tab and tab switching in IE using python and selenium

2015-05-05 Thread shweta kaushik
Thanks Steve for the information. I searched but was not able to find suitable forum to shoot this question. So posted here if anyone can help out. Regards, Shweta On May 5, 2015 6:21 PM, "Steven D'Aprano" wrote: > On Tue, May 05, 2015 at 01:38:59PM +0530, shweta kaushik

[Tutor] Open a Url in new tab and tab switching in IE using python and selenium

2015-05-05 Thread shweta kaushik
Hi All, I am trying to open a new tab in IE10 and selenium 2.45. It is able to open a new tab using pyrobot. But when i am trying to open url in new tab, it is getting opened in first tab. Focus is not set to second tab and hence it is not working and also switching of tab is not working. please p

Re: [Tutor] How to get value of sublist as return to verify in other file

2015-01-06 Thread shweta kaushik
Hi all, Thanks for the help. I am able to resolve the issue. I need to return all values in one file and in other file I need to reading the response as response[0] , response[1] and so on.. Shweta On Jan 6, 2015 8:32 AM, "shweta kaushik" wrote: > Hii Alan, > > Thank you.

Re: [Tutor] How to get value of sublist as return to verify in other file

2015-01-06 Thread shweta kaushik
Hii Alan, Thank you.. I want to put the value of sublist[3] into another file (test case) for verification purpose. Shweta On Jan 6, 2015 6:09 AM, "Alan Gauld" wrote: > On 05/01/15 17:38, shweta kaushik wrote: > > list = [[1,2,3,4,5],[2,3,4,4,6],[3,4,5,4,6],[1,4,5,4,8]] &

[Tutor] How to get value of sublist as return to verify in other file

2015-01-05 Thread shweta kaushik
Hi All, I need help for list. I am having one list of list list = [[1, 2, 3, 4], [1, 5, 9, 11,5], [1, 6, 7, 2]] In this list i am getting sublist value as shown below: >>> list = [[1,2,3,4,5],[2,3,4,4,6],[3,4,5,4,6],[1,4,5,4,8]] >>> for sublist in list: ... if sublist[3] == 4: ...

Re: [Tutor] Convert string to bytes

2014-12-31 Thread shweta kaushik
microcontroller is able to recognize and respond back. Regards, Shweta On Wed, Dec 31, 2014 at 11:27 PM, Alan Gauld wrote: > On 31/12/14 10:08, shweta kaushik wrote: > > I have one message packet in form of string s = '0xFE, 0x01, 0x01, 0x22, >> 0xFE, 0x02'. I have

[Tutor] Convert string to bytes

2014-12-31 Thread shweta kaushik
Hi all, I need help on this problem. I have one message packet in form of string s = '0xFE, 0x01, 0x01, 0x22, 0xFE, 0x02'. I have to send this data to MSP430 microcontroller, but it is not taking data if it is string. If I am passing this as hardcoded value s1 = 0xFE, 0x01, 0x01, 0x22, 0xFE, 0x02

Re: [Tutor] How to split string into separate lines

2014-12-04 Thread shweta kaushik
> On Wed, Dec 3, 2014 at 1:18 PM, shweta kaushik > wrote: > > Hi, > > > > I need help for doing this task. I know it will be simple but I am not > able > &

[Tutor] How to split string into separate lines

2014-12-03 Thread shweta kaushik
Hi, I need help for doing this task. I know it will be simple but I am not able to do it. output_message_packet= fe01b8412756fe02fe01b9416239fe02fe01ba41ad88fe02fe01bb41e8e7fe02fe01bc4112fbfe02fe01bd41

Re: [Tutor] Set values from list as per user input

2014-05-21 Thread Shweta Kaushik
Hi All, I am new to python. Please help me. I have to create one function which can set values sent by user from a list of values. For eg: I have a list having values between 1 to 100. List = ['1', '2', ... '100'] I have to write a function to set values from the list based on user input. If u

[Tutor] reg: How to import dll in python

2014-03-05 Thread Shweta Kaushik
Hi, Please find code used to create dll: add_1.cpp #include "add_1.h" using namespace std; Mathematics::Mathematics() { } void Mathematics::input() { cout << "Input two inetegers\n"; cin >> x >> y; } void Mathematics::add() { cout << "Result = " << x + y; } add_1.h #include class M

[Tutor] Reg: How to read string from a static text box from a GUI made in VC++

2014-02-28 Thread Shweta Kaushik
Hi, I am writing a script to automate GUI which is designed in VC++. How to read strings from a static box using python(pywinauton). Can you provide function details? Thanks & Regards, Shweta Kaushik HCL Technologies Ltd. Mob: +91 9500042351 Extn: 51904 ::DISCLA