PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, April 15, 2022

[FIXED] How do I select an iframe on selenium?

 April 15, 2022     continuous-integration, html, iframe, selenium     No comments   

Issue

I'm trying to do an script on selenium, but I'm struck when I have to select a combofield who is allocated on an iframe, I've searched over this site and all over the web but the only answers are for junit format...And I need to do this in HTML Format because I don't have access to the code. Thank you!

[Image][1] [Image 2][2]


Solution

I could do it...So I'll tell how I made it

COMMAND - TARGET - VALUE

Focus - Iframe -

Click -"element on the iframe" -

sendKeys - "element on the iframe but in different format" - Value you want


In my case i used the one who has this format:

//div[9]/span/span/span/span[2]/div/input

Hope this help other people.



Answered By - Nicolás Santisteban
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing