--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Hi Dmitriy.Thanks alot.It worked.RegardsVishnu
On Wed, Jul 13, 2016 at 1:19 AM, dm08 <dmitriy...@gmail.com> wrote:
Hi,From you locator I can say that you try to upload file to the label however it should be input[@type=‘file]Thanks,Dmitriy
On Jul 12, 2016, at 12:29 PM, vishnu vasudev <vishnuva...@gmail.com> wrote:
Hi Experts,I would like to upload a file to a site from the laptop which i have installed robot framework.i have used the below keywordChoose File xpath=//*[@id="attach-file"]/div[1]/fieldset/div/div/label C:/Users/SRN/Downloads/NEALLOCATION${allocations}.pngBut its not working with error belowWebDriverException: Message: unknown error: cannot focus element(Session info: chrome=51.0.2704.103)(Driver info: chromedriver=2.19.346078 (6f1f0cde889532d48ce8242342d0b84f94b114a1),platform=Windows NT 6.1 SP1 x86_64)is there any thing wrong in my command which would have caused this to failRegardsVishnu
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Hi Vishnu,Do you mean input[@type='C:/Users/SRN/Downloads/NEALLOCATION${allocations}.png] where file = C:/Users/SRN/Downloads/NEALLOCATION${allocations}.png.So now the Keywoprd would beChoose File xpath=//*[@id="attach-file"]/div[1]/fieldset/div/div/label input[@type='C:/Users/SRN/Downloads/NEALLOCATION${allocations}.png]I tried doing this but it did not work. Can you please help me asap. Thanks
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Keywords.Attached file ${LeaveRequestbtnChooseFile} input[@id='C:\\Users\\Christian Tan\\Documents\\Development\\Salttest\\Resources\\attachment.jpg']Attached file
[Arguments] ${PELEM} ${filepath}
choose file ${PELEM} ${filepath}
Choose File id:file-upload ${CURDIR}${/}picture.pngChoose File id:file-upload C:\\Users\\Christian Tan\\Documents\\Development\\Salttest\\Resources\\attachment.jpg
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.