I was able to resolve the issue by using xpath  //input[@class='sr-only' 
and @type='file']

On Friday, November 15, 2019 at 11:33:13 PM UTC-5, Karim Mohammed wrote:
>
> I have been using protractor for 2 years, today there was an issues with 
> file upload. My scripts were working fine till yesterday  but they started 
> to fail for file upload since afternoon when there was new version of code 
> deployed for web app.
>
>  I am using  Google chrome Version 78.0.3904.97,
>
> Below is HTML :
>
> I have 3 type="file" , Is that causing an issue .
>
>
> 1)<input id="file" type="file" class="upload" accept="image/*,.doc, 
> .docx,.txt,.pdf,.xls,.xlsx,.ppt,.pptx">
>
> 2)<input _ngcontent-c54="" accept=".csv" class="sr-only" type="file">
>
> 3)<input _ngcontent-c54="" accept=".csv" class="sr-only" type="file">
>
> I am not sure whether the issue is with web driver or new code. I am 
> unable to upload file and I don’t see any error.
>
> Any help is appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/d240a52a-35ab-40ca-b45a-d3aec32c73e6%40googlegroups.com.

Reply via email to